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'.
16 lines
290 B
C
16 lines
290 B
C
/*
|
|
* vim:ts=4:sw=4:expandtab
|
|
*
|
|
*/
|
|
#ifndef _ASSIGNMENTS_H
|
|
#define _ASSIGNMENTS_H
|
|
|
|
/**
|
|
* Checks the list of assignments for the given window and runs all matching
|
|
* ones (unless they have already been run for this specific window).
|
|
*
|
|
*/
|
|
void run_assignments(i3Window *window);
|
|
|
|
#endif
|