aboutsummaryrefslogtreecommitdiff
path: root/include/sway/criteria.h
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2019-10-02 17:36:52 +1000
committerDrew DeVault <sir@cmpwn.com>2020-02-27 14:03:22 +0100
commit2045ac3472196d6839569bccd436cde45ef6ca61 (patch)
tree999ec63750a37f18a67f35307dc1d72c9ca2a87e /include/sway/criteria.h
parent5ed01c861a2e720d53b42f707872dbfb36b2fce7 (diff)
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.
Diffstat (limited to 'include/sway/criteria.h')
-rw-r--r--include/sway/criteria.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/criteria.h b/include/sway/criteria.h
index beb76d5f..ad8610cd 100644
--- a/include/sway/criteria.h
+++ b/include/sway/criteria.h
@@ -46,6 +46,7 @@ struct criteria {
bool tiling;
char urgent; // 'l' for latest or 'o' for oldest
struct pattern *workspace;
+ pid_t pid;
};
bool criteria_is_empty(struct criteria *criteria);