hyprland: make audio position changes on key hold

This commit is contained in:
Donovan Glover 2024-11-17 23:15:23 -05:00
parent 832543c289
commit e2e04596bc
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -112,6 +112,7 @@ in
animations = { animations = {
enabled = true; enabled = true;
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05"; bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
animation = [ animation = [
"windows, 1, 7, myBezier" "windows, 1, 7, myBezier"
"windowsOut, 1, 7, default, popin 80%" "windowsOut, 1, 7, default, popin 80%"
@ -243,14 +244,14 @@ in
", XF86AudioNext, exec, playerctl -p playerctld next" ", XF86AudioNext, exec, playerctl -p playerctld next"
", XF86AudioPlay, exec, playerctl -p playerctld play" ", XF86AudioPlay, exec, playerctl -p playerctld play"
", XF86AudioPause, exec, playerctl -p playerctld pause" ", XF86AudioPause, exec, playerctl -p playerctld pause"
", XF86AudioForward, exec, playerctl -p playerctld position 10+"
", XF86AudioRewind, exec, playerctl -p playerctld position 10-"
", XF86Messenger, togglespecialworkspace" ", XF86Messenger, togglespecialworkspace"
]; ];
binde = [ binde = [
", XF86AudioRaiseVolume, exec, ${dunst-scripts}/bin/mv-up" ", XF86AudioRaiseVolume, exec, ${dunst-scripts}/bin/mv-up"
", XF86AudioLowerVolume, exec, ${dunst-scripts}/bin/mv-down" ", XF86AudioLowerVolume, exec, ${dunst-scripts}/bin/mv-down"
", XF86AudioForward, exec, playerctl -p playerctld position 10+"
", XF86AudioRewind, exec, playerctl -p playerctld position 10-"
]; ];
}; };