mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-04 00:45:39 +02:00
hyprland: Simplify mpv commands
This commit is contained in:
parent
554630bf9a
commit
c784a8122f
@ -3,6 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (pkgs) polkit_gnome callPackage;
|
inherit (pkgs) polkit_gnome callPackage;
|
||||||
inherit (lib) mkForce;
|
inherit (lib) mkForce;
|
||||||
|
inherit (vars) notifySend;
|
||||||
|
|
||||||
opacity = "0.95";
|
opacity = "0.95";
|
||||||
super = "SUPER";
|
super = "SUPER";
|
||||||
@ -215,11 +216,11 @@ in
|
|||||||
"${super}_SHIFT, O, exec, eww close overlay || eww open overlay"
|
"${super}_SHIFT, O, exec, eww close overlay || eww open overlay"
|
||||||
"${super}, F1, exec, killall rofi || rofi -show drun"
|
"${super}, F1, exec, killall rofi || rofi -show drun"
|
||||||
"${super}, F2, togglespecialworkspace"
|
"${super}, F2, togglespecialworkspace"
|
||||||
"${super}, comma, exec, playerctl -p mpv position \"5-\" && ${vars.notifySend} \"Minus 5 seconds\" \"$(playerctl -p mpv position)\""
|
''${super}, comma, exec, playerctl -p mpv position "5-" && ${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}, period, exec, playerctl -p mpv position "5+" && ${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, comma, exec, playerctl -p mpv previous && ${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}_SHIFT, period, exec, playerctl -p mpv next && ${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}, slash, exec, playerctl -p mpv play-pause && ${notifySend} "mpv" "$(playerctl -p mpv status)"''
|
||||||
"${super}, M, focusmonitor, +1"
|
"${super}, M, focusmonitor, +1"
|
||||||
"${super}_SHIFT, M, focusmonitor, -1"
|
"${super}_SHIFT, M, focusmonitor, -1"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user