aboutsummaryrefslogtreecommitdiff
path: root/wiki
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-04-19 10:49:46 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-04-19 10:49:46 +0400
commit914237fa1149a022d8e012ce5a0aa1107c4906fc (patch)
tree9daa27be7c7d8f00d6e863c686ef6b4161c2a244 /wiki
parent0b93c46ce80acbca086f3d9588e5ec83a48f2745 (diff)
downloadniri-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.md9
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.
```