diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-04-19 10:49:46 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-04-19 10:49:46 +0400 |
| commit | 914237fa1149a022d8e012ce5a0aa1107c4906fc (patch) | |
| tree | 9daa27be7c7d8f00d6e863c686ef6b4161c2a244 /wiki | |
| parent | 0b93c46ce80acbca086f3d9588e5ec83a48f2745 (diff) | |
| download | niri-914237fa1149a022d8e012ce5a0aa1107c4906fc.tar.gz niri-914237fa1149a022d8e012ce5a0aa1107c4906fc.tar.bz2 niri-914237fa1149a022d8e012ce5a0aa1107c4906fc.zip | |
Add allow-when-locked=true spawn bind property
Diffstat (limited to 'wiki')
| -rw-r--r-- | wiki/Configuration:-Key-Bindings.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wiki/Configuration:-Key-Bindings.md b/wiki/Configuration:-Key-Bindings.md index 1164f2dc..62c250bb 100644 --- a/wiki/Configuration:-Key-Bindings.md +++ b/wiki/Configuration:-Key-Bindings.md @@ -113,6 +113,15 @@ binds { } ``` +Spawn bindings have a special `allow-when-locked=true` property that makes them work even while the session is locked: + +``` +binds { + // This mute bind will work even when the session is locked. + XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; } +} +``` + Currently, niri *does not* use a shell to run commands, which means that you need to manually separate arguments. ``` |
