aboutsummaryrefslogtreecommitdiffstats
path: root/swaynag/swaynag.1.scd
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-11-27 23:27:44 -0500
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-11-27 23:34:51 -0500
commit673da8326038e0deb9837fd90d9e02351783b564 (patch)
tree1546629686b2afe4c7dbae18eb4233cbf0f0b4c6 /swaynag/swaynag.1.scd
parentMerge pull request #3175 from emersion/rename-gtk-primary-selection (diff)
downloadsway-673da8326038e0deb9837fd90d9e02351783b564.tar.gz
sway-673da8326038e0deb9837fd90d9e02351783b564.tar.zst
sway-673da8326038e0deb9837fd90d9e02351783b564.zip
Implement swaynag -B/--button-no-terminal
In `i3 4.16`, `i3-nagbar` introduces the flags `-B/--button-no-terminal` to run the action directly instead of inside a terminal. This implements the flags for swaynag for compatibility. Since swaynag does not use an equivalent to `i3-sensible-terminal`, the flags `-b/--button` only uses a terminal when the environment variable `TERMINAL` is set, otherwise it acts the same as these new flags.
Diffstat (limited to 'swaynag/swaynag.1.scd')
-rw-r--r--swaynag/swaynag.1.scd9
1 files changed, 8 insertions, 1 deletions
diff --git a/swaynag/swaynag.1.scd b/swaynag/swaynag.1.scd
index bb69e47d..b25568a0 100644
--- a/swaynag/swaynag.1.scd
+++ b/swaynag/swaynag.1.scd
@@ -12,7 +12,14 @@ _swaynag_ [options...]
12 12
13*-b, --button* <text> <action> 13*-b, --button* <text> <action>
14 Create a button with the text _text_ that executes _action_ when pressed. 14 Create a button with the text _text_ that executes _action_ when pressed.
15 Multiple buttons can be defined by providing the flag multiple times. 15 If the environment variable `TERMINAL` is set, _action_ will be run inside
16 the terminal. Otherwise, it will fallback to running directly. Multiple
17 buttons can be defined by providing the flag multiple times.
18
19*-B, --button-no-terminal* <text> <action>
20 Create a button with the text _text_ that executes _action_ when pressed.
21 _action_ will be run directly instead of in a terminal. Multiple buttons
22 can be defined by providing the flag multiple times.
16 23
17*-c, --config* <path> 24*-c, --config* <path>
18 The config file to use. By default, the following paths are checked: 25 The config file to use. By default, the following paths are checked: