diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2020-06-07 10:47:56 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2020-06-07 10:47:56 -0400 |
| commit | c33f25bdc5678f8cbe018e8a0d3b1f434e21f859 (patch) | |
| tree | bb976b50668afd3d700b8f7738a193a025870324 /swaynag/swaynag.1.scd | |
| parent | d16dc1e3a0d624ee9fb9b36ae1419e9b28f0306a (diff) | |
swaynag: allow specifying more buttons which execute and dismiss
I don't love -z / -Z, but I figure this patch is far from being
accepted for other reasons too.
Diffstat (limited to 'swaynag/swaynag.1.scd')
| -rw-r--r-- | swaynag/swaynag.1.scd | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/swaynag/swaynag.1.scd b/swaynag/swaynag.1.scd index fc839b96..2ce7f330 100644 --- a/swaynag/swaynag.1.scd +++ b/swaynag/swaynag.1.scd @@ -21,6 +21,19 @@ _swaynag_ [options...] _action_ will be run directly instead of in a terminal. Multiple buttons can be defined by providing the flag multiple times. +*-z, --button-dismiss* <text> <action> + Create a button with the text _text_ that executes _action_ when pressed, + and dismisses swaynag. If the environment variable _TERMINAL_ is set, + _action_ will be run inside the terminal. Otherwise, it will fallback to + running directly. Multiple buttons can be defined by providing the flag + multiple times. + +*-Z, --button-dismiss-no-terminal* <text> <action> + Create a button with the text _text_ that executes _action_ when pressed, + and dismisses swaynag. _action_ will be run directly instead of in a + terminal. Multiple buttons can be defined by providing the flag multiple + times. + *-c, --config* <path> The config file to use. By default, the following paths are checked: _$HOME/.swaynag/config_, _$XDG\_CONFIG\_HOME/swaynag/config_, and |
