Add reset behaviour of modifier key

Add an option to change the behaviour of the modifier key to reset the
visibility.
This commit is contained in:
Tobias Wölfel
2022-04-14 14:39:42 +02:00
parent 5a0e42cc76
commit 7763d50691
3 changed files with 16 additions and 4 deletions

View File

@ -77,6 +77,13 @@ Also a minimal example configuration can be found on the at the bottom of this m
Selects one of the preconfigured display modes. This is an equivalent of the sway-bar(5) *mode* command and supports the same values: *dock*, *hide*, *invisible*, *overlay*. ++
Note: *hide* and *invisible* modes may be not as useful without Sway IPC.
modifier-reset ++
typeof: string ++
default: *press*
Defines the timing of modifier key to reset the bar visibility.
To reset the visibility of the bar with the press of the modifier key use *press*.
Use *release* to reset the visibility upon the release of the modifier key and only if no other action happened while the key was pressed. This prevents hiding the bar when the modifier is used to switch a workspace, change binding mode or start a keybinding.
*exclusive* ++
typeof: bool ++
default: *true* ++