1
0
forked from extern/nix-config

hyprland: Add playerctl keybinds for mpv

This commit is contained in:
Donovan Glover 2023-11-30 19:04:30 -05:00
parent 36304461f0
commit 533094c1a9
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -185,6 +185,11 @@ in
bind = $SUPER_SHIFT, O, exec, eww close overlay || eww open overlay
bind = $SUPER, F1, exec, killall rofi || rofi -show drun
bind = $SUPER, F2, togglespecialworkspace
bind = $SUPER, comma, exec, playerctl -p mpv position "5-" && notify-send -t 2000 "Minus 5 seconds" "$(playerctl -p mpv position)"
bind = $SUPER, period, exec, playerctl -p mpv position "5+" && notify-send -t 2000 "Plus 5 seconds" "$(playerctl -p mpv position)"
bind = $SUPER_SHIFT, comma, exec, playerctl -p mpv previous && notify-send -t 2000 "Previous track" "$(playerctl -p mpv metadata xesam:title)"
bind = $SUPER_SHIFT, period, exec, playerctl -p mpv next && notify-send -t 2000 "Next track" "$(playerctl -p mpv metadata xesam:title)"
bind = $SUPER, slash, exec, playerctl -p mpv play-pause && notify-send -t 2000 "mpv" "$(playerctl -p mpv status)"
bind = $SUPER, Return, layoutmsg, swapwithmaster master
bind = $SUPER, J, layoutmsg, cyclenext