Add allow-when-locked=true spawn bind property

This commit is contained in:
Ivan Molodetskikh
2024-04-19 10:49:46 +04:00
parent 0b93c46ce8
commit 914237fa11
5 changed files with 63 additions and 15 deletions
+9
View File
@@ -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.
```