sway/include
S. Christoffer Eliesen a06cb7cd01 criteria: Add. Learn for_window command.
A criteria is a string in the form of `[class="regex.*" title="str"]`.
It is stored in a struct with a list of *tokens* which is a
attribute/value pair (stored as a `crit_token` struct). Most tokens will
also have a precompiled regex stored that will be used during criteria
matching.

for_window command: When a new view is created its metadata is tested
against all stored criteria, and if a match is found the associated
command list is executed.

Unfortunately some metadata is not available in sway at the moment
(specifically `instance`, `window_role` and `urgent`). Any criteria
string that tries to match an unsupported attribute will fail.

(Note that while the criteria code can be used to parse any criteria
string it is currently only used by the `for_window` command.)
2015-11-25 14:34:33 +01:00
..
client Refactor the crap out of wayland clients 2015-11-19 07:58:57 -05:00
commands.h Add some documentation comments 2015-11-08 12:06:51 -05:00
config.h criteria: Add. Learn for_window command. 2015-11-25 14:34:33 +01:00
container.h container: Store app_id attribute for views. 2015-11-24 16:00:41 +01:00
criteria.h criteria: Add. Learn for_window command. 2015-11-25 14:34:33 +01:00
extensions.h Fix background extensions 2015-11-19 07:23:11 -05:00
focus.h seamless_mouse: Move pointer only if successfully changed workspace. 2015-10-23 16:35:48 +02:00
handlers.h container: Move container_under_pointer here from handlers. 2015-10-29 16:37:19 +01:00
input_state.h input_state: Remove mouse_origin (x&y). Query wlc instead. 2015-10-29 18:02:02 +01:00
ipc.h Start working on IPC for get_pixels 2015-11-12 12:37:23 -05:00
layout.h commands: Learn 'move workspace to output <direction|name>'. 2015-11-03 22:38:53 +01:00
list.h list: Add list_seq_find. 2015-11-21 22:22:08 +01:00
log.h Add file and line number to log in Debug build 2015-11-11 08:32:32 -05:00
output.h output: Support multiple adjacent outputs. 2015-11-16 21:32:18 +01:00
readline.h Move headers to include/ 2015-08-16 11:02:56 -04:00
resize.h dont swap view with workspace... 2015-08-22 21:54:39 -07:00
stringop.h stringop: lenient_strcmp: Add. 2015-11-21 22:22:09 +01:00
sway.h added missing header file 2015-08-20 15:27:59 +02:00
util.h added missing util.h/c stuff 2015-08-25 19:53:59 +02:00
workspace.h seamless_mouse: Move pointer only if successfully changed workspace. 2015-10-23 16:35:48 +02:00