From 533094c1a9f31624e79ea2b42cffb763599e5743 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Thu, 30 Nov 2023 19:04:30 -0500 Subject: [PATCH] hyprland: Add playerctl keybinds for mpv --- home/hyprland.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/hyprland.nix b/home/hyprland.nix index ddb2c6a..5706ae8 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -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