hyprland: make volume changes on key hold

Makes it easier to change the volume similar to dwm.
This commit is contained in:
Donovan Glover 2024-10-27 10:33:03 -04:00
parent 2a3b5500c5
commit b3e0fbb5b5
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -237,8 +237,6 @@ in
bindl = [ bindl = [
", XF86AudioMute, exec, ${dunst-scripts}/bin/mv-mute" ", XF86AudioMute, exec, ${dunst-scripts}/bin/mv-mute"
", XF86AudioRaiseVolume, exec, ${dunst-scripts}/bin/mv-up"
", XF86AudioLowerVolume, exec, ${dunst-scripts}/bin/mv-down"
", XF86AudioMicMute, exec, ${dunst-scripts}/bin/mv-mic" ", XF86AudioMicMute, exec, ${dunst-scripts}/bin/mv-mic"
", XF86MonBrightnessDown, exec, ${dunst-scripts}/bin/mb-down" ", XF86MonBrightnessDown, exec, ${dunst-scripts}/bin/mb-down"
", XF86MonBrightnessUp, exec, ${dunst-scripts}/bin/mb-up" ", XF86MonBrightnessUp, exec, ${dunst-scripts}/bin/mb-up"
@ -251,6 +249,11 @@ in
", XF86AudioRewind, exec, playerctl -p playerctld position 10-" ", XF86AudioRewind, exec, playerctl -p playerctld position 10-"
", XF86Messenger, togglespecialworkspace" ", XF86Messenger, togglespecialworkspace"
]; ];
binde = [
", XF86AudioRaiseVolume, exec, ${dunst-scripts}/bin/mv-up"
", XF86AudioLowerVolume, exec, ${dunst-scripts}/bin/mv-down"
];
}; };
extraConfig = # hyprlang extraConfig = # hyprlang