diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-11-27 23:27:44 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-11-27 23:27:44 -0500 |
| commit | e7f0d57b0bc909789f2e3b341d0cc338da45c17d (patch) | |
| tree | 1546629686b2afe4c7dbae18eb4233cbf0f0b4c6 /include/swaynag/swaynag.h | |
| parent | 12e7e5c5b3a5d15f2cce95fa3a6b38f3ce416db9 (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 'include/swaynag/swaynag.h')
| -rw-r--r-- | include/swaynag/swaynag.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/swaynag/swaynag.h b/include/swaynag/swaynag.h index a32d1503..0fd1eb50 100644 --- a/include/swaynag/swaynag.h +++ b/include/swaynag/swaynag.h @@ -44,6 +44,7 @@ struct swaynag_button { int y; int width; int height; + bool terminal; }; struct swaynag_details { |
