From f51dd67f2d4beaeb0bad697ec026685a8efc5ca8 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 19 Apr 2024 11:29:01 +0400 Subject: wiki: Add Since to allow-when-locked --- wiki/Configuration:-Key-Bindings.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'wiki') diff --git a/wiki/Configuration:-Key-Bindings.md b/wiki/Configuration:-Key-Bindings.md index 62c250bb..cbf22e63 100644 --- a/wiki/Configuration:-Key-Bindings.md +++ b/wiki/Configuration:-Key-Bindings.md @@ -113,14 +113,16 @@ 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"; } -} -``` +> [!TIP] +> Since: 0.1.5 +> 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. -- cgit