mirror of
https://github.com/swaywm/sway.git
synced 2026-07-10 11:03:54 -04:00
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.
This commit is contained in:
parent
dbf8e1cead
commit
673da83260
4 changed files with 22 additions and 5 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue