5ae4620a24
An example to set all XTerms floating: for_window [class="XTerm"] mode floating To make all urxvts use a 1-pixel border: for_window [class="urxvt"] border 1pixel A less useful, but rather funny example: for_window [title="x200: ~/work"] mode floating The commands are not completely arbitrary. The commands above were tested, others may need some fixing. Internally, windows are compared against your criteria (class, title, …) when they are initially managed and whenever one of the relevant values change. Then, the specified command is run *once* (per window). It gets prefixed with a criteria to make it match only the specific window that triggered it. So, if you configure "mode floating", i3 runs something like '[id="8393923"] mode floating'.
68 lines
1.4 KiB
C
68 lines
1.4 KiB
C
/*
|
|
* This header file includes all relevant files of i3 and the most often used
|
|
* system header files. This reduces boilerplate (the amount of code duplicated
|
|
* at the beginning of each source file) and is not significantly slower at
|
|
* compile-time.
|
|
*
|
|
*/
|
|
#ifndef _ALL_H
|
|
#define _ALL_H
|
|
|
|
#include <assert.h>
|
|
#include <stdbool.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <locale.h>
|
|
#include <getopt.h>
|
|
#include <unistd.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/types.h>
|
|
#include <glob.h>
|
|
#include <errno.h>
|
|
#include <err.h>
|
|
#include <stdint.h>
|
|
#include <math.h>
|
|
|
|
#include <xcb/xcb.h>
|
|
#include <xcb/xcb_aux.h>
|
|
#include <xcb/xcb_keysyms.h>
|
|
#include <xcb/xcb_icccm.h>
|
|
|
|
/* Contains compatibility definitions for old libxcb versions */
|
|
#ifdef XCB_COMPAT
|
|
#include "xcb_compat.h"
|
|
#endif
|
|
|
|
#include "data.h"
|
|
#include "util.h"
|
|
#include "ipc.h"
|
|
#include "tree.h"
|
|
#include "log.h"
|
|
#include "xcb.h"
|
|
#include "manage.h"
|
|
#include "workspace.h"
|
|
#include "i3.h"
|
|
#include "x.h"
|
|
#include "click.h"
|
|
#include "floating.h"
|
|
#include "config.h"
|
|
#include "handlers.h"
|
|
#include "randr.h"
|
|
#include "xinerama.h"
|
|
#include "con.h"
|
|
#include "load_layout.h"
|
|
#include "render.h"
|
|
#include "window.h"
|
|
#include "match.h"
|
|
#include "cmdparse.h"
|
|
#include "xcursor.h"
|
|
#include "resize.h"
|
|
#include "sighandler.h"
|
|
#include "move.h"
|
|
#include "output.h"
|
|
#include "ewmh.h"
|
|
#include "assignments.h"
|
|
|
|
#endif
|