summaryrefslogtreecommitdiff
path: root/vifm/.config
diff options
context:
space:
mode:
authorrafa_99 <rafa99@protonmail.com>2021-01-25 15:08:24 +0000
committerrafa_99 <rafa99@protonmail.com>2021-01-25 15:08:24 +0000
commit30b16c24d0502d909507d1cb9d4b6286875d856a (patch)
tree97cad2b9d4ef897f83931d8d295097a1ebbef235 /vifm/.config
parent7333858ff709061c14a56feb594b997a34111743 (diff)
Updated vifmrc
Diffstat (limited to 'vifm/.config')
-rwxr-xr-xvifm/.config/vifm/scripts/vifmimg4
-rw-r--r--vifm/.config/vifm/vifmrc19
2 files changed, 18 insertions, 5 deletions
diff --git a/vifm/.config/vifm/scripts/vifmimg b/vifm/.config/vifm/scripts/vifmimg
index d978f4f..c19130b 100755
--- a/vifm/.config/vifm/scripts/vifmimg
+++ b/vifm/.config/vifm/scripts/vifmimg
@@ -1,11 +1,11 @@
#!/usr/bin/env bash
readonly ID_PREVIEW="preview"
-#PLAY_GIF="yes"
+PLAY_GIF="yes"
# By enabling this option the GIF will be animated, by leaving it commented like it
# is now will make the gif previews behave the same way as video previews.
-#AUTO_REMOVE="yes"
+AUTO_REMOVE="yes"
# By enabling this option the script will remove the preview file after it is drawn
# and by doing so the preview will always be up-to-date with the file.
# This however, requires more CPU and therefore affects the overall performance.
diff --git a/vifm/.config/vifm/vifmrc b/vifm/.config/vifm/vifmrc
index eeb8a93..a812020 100644
--- a/vifm/.config/vifm/vifmrc
+++ b/vifm/.config/vifm/vifmrc
@@ -158,10 +158,13 @@ command! reload :write | restart
" program.
" Pdf
- fileviewer *.pdf
+filextype *.pdf zathura %c %i &
+
+fileviewer *.pdf
\ vifmimg pdfpreview %px %py %pw %ph %c
\ %pc
\ vifmimg clear
+ \ zathra %f
" Epub
fileviewer *.epub
@@ -203,6 +206,12 @@ fileviewer <font/*>
\ vifmimg clear
" Video
+
+filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
+ \*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
+ \*.as[fx]
+ \ mpv %f
+
fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
\*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
\ vifmimg videopreview %px %py %pw %ph %c
@@ -229,6 +238,10 @@ filetype *.[1-8] man ./%c
fileviewer *.[1-8] man ./%c | col -b
" Images
+
+filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
+ \ sxiv %f
+
fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.xpm
\ vifmimg draw %px %py %pw %ph %c
\ %pc
@@ -483,5 +496,5 @@ nnoremap <f8> :delete<cr>
"
" let $VIFM_SERVER_NAME = v:servername
-map > :!vifmimg inc<CR>
-map < :!vifmimg dec<CR>
+map n :!vifmimg inc<CR>
+map N :!vifmimg dec<CR>