From 2045ac3472196d6839569bccd436cde45ef6ca61 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Wed, 2 Oct 2019 17:36:52 +1000 Subject: Introduce pid criteria token This can be used as a workaround to flag terminal windows as urgent when commands are completed, until urgency is introduced in the Wayland protocol. Configure your shell to run `swaymsg "[pid=$PPID] urgent enable"` when commands are completed, and use a terminal which uses one process per window. --- sway/sway.5.scd | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sway/sway.5.scd') diff --git a/sway/sway.5.scd b/sway/sway.5.scd index 6b2ad1b1..ad5dacc8 100644 --- a/sway/sway.5.scd +++ b/sway/sway.5.scd @@ -850,6 +850,9 @@ The following attributes may be matched with: value is \_\_focused\_\_, then the window instance must be the same as that of the currently focused window. +*pid* + Compare value against the window's process ID. Must be numeric. + *shell* Compare value against the window shell, such as "xdg_shell" or "xwayland". Can be a regular expression. If value is \_\_focused\_\_, then the shell -- cgit v1.2.3