mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-25 09:43:11 +01:00
hyprland: Simplify mpv commands
This commit is contained in:
parent
554630bf9a
commit
c784a8122f
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user