From 914237fa1149a022d8e012ce5a0aa1107c4906fc Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 19 Apr 2024 10:49:46 +0400 Subject: Add allow-when-locked=true spawn bind property --- resources/default-config.kdl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'resources') diff --git a/resources/default-config.kdl b/resources/default-config.kdl index df09bcf5..0aa78f3d 100644 --- a/resources/default-config.kdl +++ b/resources/default-config.kdl @@ -263,8 +263,10 @@ binds { // Mod+T { spawn "bash" "-c" "notify-send hello && exec alacritty"; } // Example volume keys mappings for PipeWire & WirePlumber. - XF86AudioRaiseVolume { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"; } - XF86AudioLowerVolume { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"; } + // The allow-when-locked=true property makes them work even when the session is locked. + XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"; } + XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"; } + XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; } Mod+Q { close-window; } -- cgit