added volume controls

This commit is contained in:
Tyler Mayoff 2025-09-19 22:54:35 -04:00
parent 546b96284e
commit 135c685973

View file

@ -416,10 +416,22 @@ in {
# Example volume keys mappings for PipeWire & WirePlumber. # Example volume keys mappings for PipeWire & WirePlumber.
# The allow-when-locked=true property makes them work even when the session is locked. # 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+"; } "XF86AudioRaiseVolume" = {
# XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"; } allow-when-locked = true;
# XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; } action = spawn ["wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"];
# XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; } };
"XF86AudioLowerVolume" = {
allow-when-locked = true;
action = spawn ["wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"];
};
"XF86AudioMute" = {
allow-when-locked = true;
action = spawn ["wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"];
};
XF86AudioMicMute = {
allow-when-locked = true;
action = spawn ["wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"];
};
# Open/close the Overview: a zoomed-out view of workspaces and windows. # Open/close the Overview: a zoomed-out view of workspaces and windows.
# You can also move the mouse into the top-left hot corner, # You can also move the mouse into the top-left hot corner,