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.
This commit is contained in:
Ryan Dwyer 2019-10-02 17:36:52 +10:00 committed by Drew DeVault
parent 5ed01c861a
commit 2045ac3472
3 changed files with 21 additions and 1 deletions

View file

@ -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);