1
0
Fork 0
mirror of https://github.com/NickHu/sway synced 2025-01-29 08:34:13 +01:00
sway-patched-tray-menu/sway
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
..
commands.c criteria: Add. Learn for_window command. 2015-11-25 14:34:33 +01:00
config.c criteria: Add. Learn for_window command. 2015-11-25 14:34:33 +01:00
container.c container: Store app_id attribute for views. 2015-11-24 16:00:41 +01:00
criteria.c criteria: Add. Learn for_window command. 2015-11-25 14:34:33 +01:00
debug_log.c Start fleshing out wayland client implementation 2015-11-12 19:04:01 -05:00
extensions.c extensions: add missing include 2015-11-25 14:39:09 +02:00
focus.c Include header declaring ipc_event_workpace(2) 2015-11-04 21:12:25 +01:00
handlers.c criteria: Add. Learn for_window command. 2015-11-25 14:34:33 +01:00
input_state.c We somewhat more wlc_point now 2015-11-14 17:14:23 -05:00
ipc.c ipc: Store socketname in SWAYSOCK. Fixes --get-socketpath. 2015-11-13 18:18:52 +01:00
layout.c layout: get_swayc_in_direction_under: Handle floating views. 2015-11-24 21:34:41 +01:00
main.c Basic support for extensions in server and clients 2015-11-18 22:01:22 -05:00
output.c output: Support multiple adjacent outputs. 2015-11-16 21:32:18 +01:00
readline.c Fix potential memory leak 2015-08-20 02:30:22 +02:00
resize.c return after disconnect ipc client and minor checks 2015-09-29 07:19:10 -07:00
stringop.c stringop: Properly handle criteria strings. 2015-11-24 16:12:37 +01:00
util.c added missing util.h/c stuff 2015-08-25 19:53:59 +02:00
workspace.c put ipc_event_workspace in update_focus 2015-11-02 11:28:51 -08:00