keybind: implement allowWhenLocked

fixes #2034

see bc258a3be2/sway/sway.5.scd (L409)
This commit is contained in:
Tobias Bengfort 2024-08-02 14:08:19 +02:00 committed by Consolatis
parent 6dd0d69889
commit 116382fd89
4 changed files with 21 additions and 16 deletions

View file

@ -499,7 +499,7 @@ extending outward from the snapped edge.
Stores the keyboard layout either globally or per window and restores
it when switching back to the window. Default is global.
*<keyboard><keybind key="" layoutDependent="" onRelease="">*
*<keyboard><keybind key="" layoutDependent="" onRelease="" allowWhenLocked="">*
Define a *key* binding in the format *modifier-key*, where supported
modifiers are:
- S (shift)
@ -541,6 +541,9 @@ extending outward from the snapped edge.
</keybind>
```
*allowWhenLocked* [yes|no]
Make this keybind work even if the screen is locked. Default is no.
*<keyboard><keybind key=""><action name="">*
Keybind action. See labwc-actions(5).