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'.
38 lines
966 B
C
38 lines
966 B
C
/*
|
|
* vim:ts=4:sw=4:expandtab
|
|
*
|
|
* i3 - an improved dynamic tiling window manager
|
|
*
|
|
* © 2009 Michael Stapelberg and contributors
|
|
*
|
|
* See file LICENSE for license information.
|
|
*
|
|
*/
|
|
#include <xcb/xcb_keysyms.h>
|
|
|
|
#include <X11/XKBlib.h>
|
|
|
|
#include "queue.h"
|
|
#include "data.h"
|
|
#include "xcb.h"
|
|
|
|
#ifndef _I3_H
|
|
#define _I3_H
|
|
|
|
extern xcb_connection_t *conn;
|
|
extern xcb_key_symbols_t *keysyms;
|
|
extern char **start_argv;
|
|
extern Display *xlibdpy, *xkbdpy;
|
|
extern int xkb_current_group;
|
|
extern TAILQ_HEAD(bindings_head, Binding) *bindings;
|
|
extern TAILQ_HEAD(autostarts_head, Autostart) autostarts;
|
|
extern TAILQ_HEAD(assignments_head, Match) assignments;
|
|
extern TAILQ_HEAD(ws_assignments_head, Workspace_Assignment) ws_assignments;
|
|
extern TAILQ_HEAD(real_assignments_head, Assignment) real_assignments;
|
|
extern SLIST_HEAD(stack_wins_head, Stack_Window) stack_wins;
|
|
extern uint8_t root_depth;
|
|
extern bool xcursor_supported, xkb_supported;
|
|
extern xcb_window_t root;
|
|
|
|
#endif
|