Skip to content

xVermillionx/ytfzf-kitty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

ytfzf-kitty

Works only for kitty terminal, in Wayland or Xorg

Edit ytfzf script to use kitty with icat ( Wayland | Xorg )

Insert the two lines of code below in the preview_img function:

Clears the previous shown image.

kitty +kitten icat --clear --silent --transfer-mode=stream  

Shows the current image.

kitty +kitten icat --silent --transfer-mode=stream \
--place=$thumb_width\x$thumb_height@$thumb_x\x$thumb_y $IMAGE  

If you want to disable ueberzug you have to comment out the ueberzug functions in user_selection :

user_selection () {

	...

	elif [ "$show_thumbnails" -eq 1 ] ; then 
		dep_ck "ueberzug" "fzf" # dep_ck "fzf"
		# ueberzug_start
	
		...

		# ueberzug_stop

		...

	fi

...

}

And remove the check for the $FIFO file in the parse_opt function

U)  preview_img "$optarg"; exit; 
# U)  [[ -p "$FIFO" ] && preview_img "$optarg"; exit; 

About

Works only for kitty terminal in Wayland or Xorg

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published