diff options
author | Brian Ashworth <[email protected]> | 2018-11-27 23:27:44 -0500 |
---|---|---|
committer | Brian Ashworth <[email protected]> | 2018-11-27 23:34:51 -0500 |
commit | 673da8326038e0deb9837fd90d9e02351783b564 (patch) | |
tree | 1546629686b2afe4c7dbae18eb4233cbf0f0b4c6 /swaynag/swaynag.1.scd | |
parent | dbf8e1cead12ba775a9a702140576c5f7406c380 (diff) |
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.scd | 9 |
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...] *-b, --button* <text> <action> Create a button with the text _text_ that executes _action_ when pressed. - Multiple buttons can be defined by providing the flag multiple times. + 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. + +*-B, --button-no-terminal* <text> <action> + Create a button with the text _text_ that executes _action_ when pressed. + _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: |