From 618e4580240c71a7ac866649e01439e75ef4d6a6 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 23 Aug 2024 23:36:43 +0200 Subject: ... --- accounts/gkleen@sif/hyprland.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'accounts/gkleen@sif/hyprland.nix') diff --git a/accounts/gkleen@sif/hyprland.nix b/accounts/gkleen@sif/hyprland.nix index 645a2f22..052f35b0 100644 --- a/accounts/gkleen@sif/hyprland.nix +++ b/accounts/gkleen@sif/hyprland.nix @@ -184,6 +184,10 @@ in { "CTRL, comma, exec, dunstctl history-pop" "$mainMod ALT, E, exec, emacsclient -c" + "$mainMod ALT, Y, exec, ${pkgs.writeShellScript "yt-dlp" '' + export PATH="${lib.makeBinPath (with pkgs; [ wl-clipboard-rs socat ])}:$PATH" + socat STDIO UNIX-CONNECT:"$XDG_RUNTIME_DIR"/yt-dlp.sock <<<$'{ "urls": ["'"$(wl-paste)"$'"] }' + ''}" ", XF86MonBrightnessUp, exec, lightctl -d -e4 -n1 up" ", XF86MonBrightnessDown, exec, lightctl -d -e4 -n1 down" -- cgit v1.2.3