mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Add allow-when-locked=true spawn bind property
This commit is contained in:
@@ -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.
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user