hyprland: Simplify mpv commands

This commit is contained in:
Donovan Glover 2024-07-12 12:42:38 -04:00
parent 554630bf9a
commit c784a8122f
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -3,6 +3,7 @@
let
inherit (pkgs) polkit_gnome callPackage;
inherit (lib) mkForce;
inherit (vars) notifySend;
opacity = "0.95";
super = "SUPER";
@ -215,11 +216,11 @@ in
"${super}_SHIFT, O, exec, eww close overlay || eww open overlay"
"${super}, F1, exec, killall rofi || rofi -show drun"
"${super}, F2, togglespecialworkspace"
"${super}, comma, exec, playerctl -p mpv position \"5-\" && ${vars.notifySend} \"Minus 5 seconds\" \"$(playerctl -p mpv position)\""
"${super}, period, exec, playerctl -p mpv position \"5+\" && ${vars.notifySend} \"Plus 5 seconds\" \"$(playerctl -p mpv position)\""
"${super}_SHIFT, comma, exec, playerctl -p mpv previous && ${vars.notifySend} \"Previous track\" \"$(playerctl -p mpv metadata xesam:title)\""
"${super}_SHIFT, period, exec, playerctl -p mpv next && ${vars.notifySend} \"Next track\" \"$(playerctl -p mpv metadata xesam:title)\""
"${super}, slash, exec, playerctl -p mpv play-pause && ${vars.notifySend} \"mpv\" \"$(playerctl -p mpv status)\""
''${super}, comma, exec, playerctl -p mpv position "5-" && ${notifySend} "Minus 5 seconds" "$(playerctl -p mpv position)"''
''${super}, period, exec, playerctl -p mpv position "5+" && ${notifySend} "Plus 5 seconds" "$(playerctl -p mpv position)"''
''${super}_SHIFT, comma, exec, playerctl -p mpv previous && ${notifySend} "Previous track" "$(playerctl -p mpv metadata xesam:title)"''
''${super}_SHIFT, period, exec, playerctl -p mpv next && ${notifySend} "Next track" "$(playerctl -p mpv metadata xesam:title)"''
''${super}, slash, exec, playerctl -p mpv play-pause && ${notifySend} "mpv" "$(playerctl -p mpv status)"''
"${super}, M, focusmonitor, +1"
"${super}_SHIFT, M, focusmonitor, -1"