wiki: Add Since to allow-when-locked
Browse files at this commitf51dd67f2d4beaeb0bad697ec026685a8efc5ca8Parent: 3509de61 changed file +10 -8
wiki/Configuration:-Key-Bindings.mdmodified+10 -8
| @@ -113,14 +113,16 @@ binds { | ||
| 113 | 113 | } |
| 114 | 114 | ``` |
| 115 | 115 | |
| 116 | -Spawn bindings have a special `allow-when-locked=true` property that makes them work even while the session is locked: | |
| 117 | - | |
| 118 | -``` | |
| 119 | -binds { | |
| 120 | - // This mute bind will work even when the session is locked. | |
| 121 | - XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; } | |
| 122 | -} | |
| 123 | -``` | |
| 116 | +> [!TIP] | |
| 117 | +> <sup>Since: 0.1.5</sup> | |
| 118 | +> Spawn bindings have a special `allow-when-locked=true` property that makes them work even while the session is locked: | |
| 119 | +> | |
| 120 | +> ``` | |
| 121 | +> binds { | |
| 122 | +> // This mute bind will work even when the session is locked. | |
| 123 | +> XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; } | |
| 124 | +> } | |
| 125 | +> ``` | |
| 124 | 126 | |
| 125 | 127 | Currently, niri *does not* use a shell to run commands, which means that you need to manually separate arguments. |
| 126 | 128 |