From 75196520b3d6a0e60db1d03a64aaa0655cc4f202 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 11 Jul 2024 21:48:33 +0200 Subject: checkpoint --- bin/common/ytclipo | 5 +++-- bin/extra/ytplay | 2 +- config/essentials/shell/aliases.sh | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/common/ytclipo b/bin/common/ytclipo index b11f84a..4d9d846 100755 --- a/bin/common/ytclipo +++ b/bin/common/ytclipo @@ -1,13 +1,14 @@ #!/bin/sh -inp="$(ytlink)" +inp="$1" +[ -z "$inp" ] && inp="$(ytlink)" +[ "$inp" ] || exit 1 >&2 printf "inp: %s\n" "$inp" notify-send "ytclipo" "$inp" || : yt-dlp "$inp" \ --restrict-filenames \ --embed-chapters \ - -f "b" \ -S "res:1080" \ -P "$HOME/vids/youtube/" \ -o "%(channel)s/%(title)s.%(ext)s" diff --git a/bin/extra/ytplay b/bin/extra/ytplay index 5243364..005cc2d 100755 --- a/bin/extra/ytplay +++ b/bin/extra/ytplay @@ -1,4 +1,4 @@ #!/bin/sh url="$(ytlink)" herbe "playing: $url" & -yt-dlp -o - "$url" | mpv - +yt-dlp -S "res:1080" -o - "$url" | mpv - diff --git a/config/essentials/shell/aliases.sh b/config/essentials/shell/aliases.sh index 291640d..bb2d6a9 100644 --- a/config/essentials/shell/aliases.sh +++ b/config/essentials/shell/aliases.sh @@ -281,7 +281,7 @@ alias god='cd "$(find . -mindepth 1 -maxdepth 1 -type d | fzf)"' alias gov='go ~/vids d' # fzf aliases -alias ppj='cd ~/proj/personal/"$(find ~/proj/personal -mindepth 1 -maxdepth 1 -type d -printf "%f\n" | fzf)"' +alias ppj='cd ~/proj/"$(find ~/proj -mindepth 1 -maxdepth 1 -type d -printf "%f\n" | fzf)"' alias ppjs='cd ~/proj/personal/scripts/"$(find ~/proj/personal/scripts -mindepth 1 -maxdepth 1 -type d -printf "%f\n" | fzf)"' alias scr='edit_in_dir ~/proj/personal/scripts/' alias fil='edit_in_dir ~/docs/filios/' -- cgit v1.2.3