From e92e7e5b1ca55269bdb3ca3031d30563a8d8abd4 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 25 Nov 2022 17:00:00 +0100 Subject: [PATCH] vifm: Change default image opener to timg Changed opening images by default to do so on the commandline itself, using timg. Other openers can still be invoked through the `:file` command like before. --- vifm/.config/vifm/vifmrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/vifm/.config/vifm/vifmrc b/vifm/.config/vifm/vifmrc index 5483da3..f1938f2 100644 --- a/vifm/.config/vifm/vifmrc +++ b/vifm/.config/vifm/vifmrc @@ -392,6 +392,8 @@ filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob, \*.as[fx] \ {View using unique mplayer instance} \ umpv %f &, + \ {View in timg} + \ timg --title --center --clear %f; read -k 1 -s -r, \ {View using ffplay} \ ffplay -fs -autoexit %f, \ {View using Dragon} @@ -425,6 +427,8 @@ fileviewer *.[1-8] man ./%c | col -b " Gif filextype *.gif + \ {View in timg} + \ timg --loops=2 --title --center --clear %f; read -k 1 -s -r, \ {Loop} \ mpv --loop=inf %f %i &, fileviewer *.gif @@ -434,6 +438,8 @@ fileviewer *.gif " Images filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm + \ {View in timg} + \ timg --title --center --clear %f; read -k 1 -s -r, \ {View in nsxiv directory viewer} \ vifm-thumbnailer %c, \ {View in nsxiv} @@ -447,9 +453,7 @@ filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm \ {View in gpicview} \ gpicview %c, fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm - \ kitty +kitten icat --silent --transfer-mode=stream --place=%pwx%ph@%pxx%py %c %N - \ %pc - \ kitty +kitten icat --clear --silent %pd + \ timg -g%pwx%ph -pq %c " OpenRaster filextype *.ora