From 53f8ca5eec558e257b58815ec3c45350c7e42b64 Mon Sep 17 00:00:00 2001 From: redxef Date: Sat, 29 Oct 2022 01:53:50 +0200 Subject: [PATCH] Update readme. --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index 4c9acd9..43f892d 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ Run multiple programs by specifying a yaml list of the form: - filter: workspace: program: + signal_continue: ``` ## Installing @@ -56,3 +57,32 @@ For example: `(> ".container.geometry.width" 300)` would match the first window Multiple filters are combined via nesting: `(& (> ".container.geometry.width" 300) (= ".container.window_properties.class" "discord"))`. +## Starting tray programs in a specific order + +To start tray programs in a specific order it is possible to specify the `signal_continue` parameter. +Starting of programs will be halted until the program has received the corresponding signal. + +This could be combined with waybar to enforce an ordering of tray applications: + +`~/.config/waybar/config` +```json +"tray": { + "on-update": "pkill --full --signal SIGUSR1 i3toolwait", + "reverse-direction": true, +} +``` + +`config-file` +```yaml +- program: 'nm-applet --indicator' + filter: '(False)' + workspace: -1 + signal_continue: 10 +- program: 'blueman-applet' + filter: '(False)' + workspace: -1 + signal_continue: 10 +- ... +``` + +This setup would order the icons in waybar from left-to-right like in the config file.