diff options
author | Graham Christensen <graham@grahamc.com> | 2020-06-07 10:47:56 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-06-09 00:00:14 +0200 |
commit | a974300652fc5cea72db60e1e39b0f7da7e9f334 (patch) | |
tree | bb976b50668afd3d700b8f7738a193a025870324 /swaynag/swaynag.1.scd | |
parent | input/tablet: allow moving tiling tablet v2 surfaces by pen input (diff) | |
download | sway-a974300652fc5cea72db60e1e39b0f7da7e9f334.tar.gz sway-a974300652fc5cea72db60e1e39b0f7da7e9f334.tar.zst sway-a974300652fc5cea72db60e1e39b0f7da7e9f334.zip |
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...] | |||
21 | _action_ will be run directly instead of in a terminal. Multiple buttons | 21 | _action_ will be run directly instead of in a terminal. Multiple buttons |
22 | can be defined by providing the flag multiple times. | 22 | can be defined by providing the flag multiple times. |
23 | 23 | ||
24 | *-z, --button-dismiss* <text> <action> | ||
25 | Create a button with the text _text_ that executes _action_ when pressed, | ||
26 | and dismisses swaynag. If the environment variable _TERMINAL_ is set, | ||
27 | _action_ will be run inside the terminal. Otherwise, it will fallback to | ||
28 | running directly. Multiple buttons can be defined by providing the flag | ||
29 | multiple times. | ||
30 | |||
31 | *-Z, --button-dismiss-no-terminal* <text> <action> | ||
32 | Create a button with the text _text_ that executes _action_ when pressed, | ||
33 | and dismisses swaynag. _action_ will be run directly instead of in a | ||
34 | terminal. Multiple buttons can be defined by providing the flag multiple | ||
35 | times. | ||
36 | |||
24 | *-c, --config* <path> | 37 | *-c, --config* <path> |
25 | The config file to use. By default, the following paths are checked: | 38 | The config file to use. By default, the following paths are checked: |
26 | _$HOME/.swaynag/config_, _$XDG\_CONFIG\_HOME/swaynag/config_, and | 39 | _$HOME/.swaynag/config_, _$XDG\_CONFIG\_HOME/swaynag/config_, and |