From 104a9452c471b11996786282c08694fe67b117ec Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 28 Sep 2022 19:33:54 +0200 Subject: vifm: update config --- .config/vifm/vifmrc | 59 +++++++++++++++++++++++++++++++++-------------------- 1 file changed, 37 insertions(+), 22 deletions(-) diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc index 8fdc03d..4dfd47d 100644 --- a/.config/vifm/vifmrc +++ b/.config/vifm/vifmrc @@ -60,16 +60,12 @@ command! reload :write | restart " Pdf filextype *.pdf \ {View in zathura} - \ zathura %c %i &, + \ zathura %f &, \ {View in mupdf} \ mupdf %c &, fileviewer *.pdf pdftotext -nopgbrk %c - -" PostScript -filextype *.ps,*.eps,*.ps.gz - \ {View in zathura} - \ zathura %f, -" Djvu -filextype *.djvu + +filextype *.ps,*.eps,*.ps.gz,*.djvu,*.cbz \ {View in zathura} \ zathura %f, @@ -94,9 +90,11 @@ filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob, \ {View using ffplay} \ ffplay -fs %f, \ {Enqueue using xap} - \ xap add %c:p, + \ xap add %f, \ {Open in LosslessCut} - \ lossless-cut.desktop "%c:p", + \ lossless-cut.desktop %f, + \ {Chromecast} + \ go-chromecast --first --with-ui load %f, fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob, \*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx, @@ -122,21 +120,25 @@ filetype *.[1-8] man ./%c fileviewer *.[1-8] man ./%c | col -b " Images -filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm,*.webp +filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm,*.webp,*.svg + \ {View in imv} + \ imv-folder %f 2>/dev/null &, \ {View in swayimg} \ swayimg %f %d/*, + \ {View in qimgv} + \ swaymsg exec -- qimgv %f:p, \ {View in mvi} \ mvi %c, - \ {View in imv} - \ imv -d %f 2>/dev/null &, - \ {View in terminal} - \ icat %c %pw %ph %pd, \ {Edit with GIMP} - \ gimp.AppImage %c & + \ swaymsg exec -- $HOME/AppImages/gimp.AppImage %f:p, + \ {Edit with Darktable} + \ swaymsg exec -- darktable %f:p, + \ {View mediainfo} + \ mediainfo %c, fileviewer *.jpg,*.jpeg,*.png,*.gif,*.svg - \ swayimg %f %d/* + \ swayimg %f " fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm -" \ vifm-show-sixel %c %pw %ph %pd 2>/dev/null || mediainfo %c 2>&1 +" \ vifm-show-sixel %c %pw %ph %pd 2>/dev/null || mediainfo %c 2>&1 " MD5 filetype *.md5 @@ -187,11 +189,15 @@ filetype *.ove \ {Open with Olive} \ swx olive.desktop %d/%c, -filextype * - \ {Copy file path} - \ wl-copy --trim-newline "%c:p", +filetype * + \ {Open with nuke} + \ nuke %f, \ {Open with nvim} - \ nvim %f + \ nvim %f, + \ {Copy file path} + \ url-launcher "%c:p", + \ {Check size} + \ ncdu -rx %c:p, " ------------------------------------------------------------------------------ " FUSE @@ -266,6 +272,15 @@ nnoremap ;c :write | edit $MYVIFMRC | restart " Toggle wrap setting on ,w key " nnoremap ;w :if system(expand("awk 'BEGIN{print (%pw > %ph)}'")) | split! | else | vsplit! | endif -nnoremap ;F :!fd -t f -e jpg -e png . %d | flipr -q -i - +nnoremap ;F :!fd -t f -e jpg -e png . %c:p:h | shuf | flipr -q -i - +nnoremap ;I :!fd -t f -e jpg -e png -e gif . %c:p:h | shuf | imv -b 000000 -t 0.8 +nnoremap ;P :!~/bin/photosort/photosort -n -s -d /photos/ %c:p +nnoremap ;w :!go-chromecast load --with-ui %f +nnoremap ;R :!~/bin/rsyncez %f ? +nnoremap ;t :!tailscale file cp --verbose %f DEST: nnoremap q :quit +nnoremap - :goto .. +nnoremap :hideui + +nnoremap -- cgit 1.4.1