From ec4e35bd360adc7a968f7c1d4dc2801d1bb0a29f Mon Sep 17 00:00:00 2001 From: Anish L Date: Tue, 19 Jul 2022 00:39:03 +1000 Subject: [PATCH] add yt-dlp for youtube mpv, and shortcut to run with super + w --- users/profiles/cli/default.nix | 1 + users/profiles/desktop/bin/mpv-ify | 3 +++ users/profiles/desktop/default.nix | 1 + users/profiles/desktop/sxhkdrc | 2 ++ 4 files changed, 7 insertions(+) create mode 100755 users/profiles/desktop/bin/mpv-ify diff --git a/users/profiles/cli/default.nix b/users/profiles/cli/default.nix index f4002f58..4e657437 100644 --- a/users/profiles/cli/default.nix +++ b/users/profiles/cli/default.nix @@ -52,6 +52,7 @@ xxd kitty taskwarrior + yt-dlp gnupg syncthing dijo diff --git a/users/profiles/desktop/bin/mpv-ify b/users/profiles/desktop/bin/mpv-ify new file mode 100755 index 00000000..bb4138b8 --- /dev/null +++ b/users/profiles/desktop/bin/mpv-ify @@ -0,0 +1,3 @@ +#!/usr/bin/bash +URL="$(xclip -o)" +mpv $URL diff --git a/users/profiles/desktop/default.nix b/users/profiles/desktop/default.nix index 3293014b..d67b9158 100644 --- a/users/profiles/desktop/default.nix +++ b/users/profiles/desktop/default.nix @@ -107,6 +107,7 @@ in ".local/bin/passmenu".source = ./bin/passmenu; ".local/bin/powermenu".source = ./bin/powermenu; ".local/bin/screenshot".source = ./bin/screenshot; + ".local/bin/mpv-ify".source = ./bin/mpv-ify; # ".local/bin/hotplug-monitor.sh".source = ./bin/hotplug-monitor.sh; }; diff --git a/users/profiles/desktop/sxhkdrc b/users/profiles/desktop/sxhkdrc index 0b49fbf9..107384f4 100644 --- a/users/profiles/desktop/sxhkdrc +++ b/users/profiles/desktop/sxhkdrc @@ -95,6 +95,8 @@ super + shift + {Left,Down,Up,Right} # ## Media keys +super + u + mpv-ify # screenshot region Print