add ueberzugpp for ytfzf thumbnailing
This commit is contained in:
parent
0d1a6fb4cf
commit
9e3a13863d
2 changed files with 3 additions and 2 deletions
|
@ -12,6 +12,7 @@
|
|||
, curl
|
||||
, ytfzf
|
||||
, libsecret
|
||||
, ueberzugpp
|
||||
,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation {
|
||||
|
@ -49,6 +50,6 @@ stdenvNoCC.mkDerivation {
|
|||
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/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]}
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ fi
|
|||
if [ ! -e "$HISTORY_FILE" ] ; then
|
||||
touch "$HISTORY_FILE"
|
||||
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:")"
|
||||
kitty --class=ytfzf --title "YouTube Search: ${SEARCH_TERM}" -- ytfzf -f -tT kitty --async-thumbnails "${SEARCH_TERM}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue