add ueberzugpp for ytfzf thumbnailing

This commit is contained in:
Adithya 2024-05-11 21:06:32 +05:30
parent 0d1a6fb4cf
commit 9e3a13863d
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
2 changed files with 3 additions and 2 deletions

View file

@ -12,6 +12,7 @@
, curl , curl
, ytfzf , ytfzf
, libsecret , libsecret
, ueberzugpp
, ,
}: }:
stdenvNoCC.mkDerivation { stdenvNoCC.mkDerivation {
@ -49,6 +50,6 @@ stdenvNoCC.mkDerivation {
wrapProgram $out/bin/tmux-sessions --prefix PATH : ${lib.makeBinPath [tmux kitty rofi-wayland]} wrapProgram $out/bin/tmux-sessions --prefix PATH : ${lib.makeBinPath [tmux kitty rofi-wayland]}
wrapProgram $out/bin/chpaper --prefix PATH : ${lib.makeBinPath [imagemagick swww]} wrapProgram $out/bin/chpaper --prefix PATH : ${lib.makeBinPath [imagemagick swww]}
wrapProgram $out/bin/wallhaven --prefix PATH : ${lib.makeBinPath [jq curl libsecret]} wrapProgram $out/bin/wallhaven --prefix PATH : ${lib.makeBinPath [jq curl libsecret]}
wrapProgram $out/bin/youtube --prefix PATH : ${lib.makeBinPath [kitty ytfzf rofi-wayland]} wrapProgram $out/bin/youtube --prefix PATH : ${lib.makeBinPath [kitty ytfzf rofi-wayland ueberzugpp]}
''; '';
} }

View file

@ -10,7 +10,7 @@ fi
if [ ! -e "$HISTORY_FILE" ] ; then if [ ! -e "$HISTORY_FILE" ] ; then
touch "$HISTORY_FILE" touch "$HISTORY_FILE"
fi fi
HISTORY="$(awk -F' ' '{$1="";$2="";$3="";print $0}' $HISTORY_FILE | sed 's/^\s*//g' | uniq)" HISTORY="$(awk -F' ' '{$1="";$2="";$3="";print $0}' "$HISTORY_FILE" | sed 's/^\s*//g' | uniq)"
SEARCH_TERM="$(echo "$HISTORY" | rofi -dmenu -p "Search Youtube:")" SEARCH_TERM="$(echo "$HISTORY" | rofi -dmenu -p "Search Youtube:")"
kitty --class=ytfzf --title "YouTube Search: ${SEARCH_TERM}" -- ytfzf -f -tT kitty --async-thumbnails "${SEARCH_TERM}" kitty --class=ytfzf --title "YouTube Search: ${SEARCH_TERM}" -- ytfzf -f -tT kitty --async-thumbnails "${SEARCH_TERM}"