From 80d5386c1000820f8a4883245916e8745f701111 Mon Sep 17 00:00:00 2001 From: samedamci Date: Tue, 17 Mar 2020 23:27:59 +0100 Subject: [PATCH] Update vifm config --- botfiles/.config/gtk-2.0/gtkfilechooser.ini | 8 ++-- botfiles/.config/vifm/colors/biual.vifm | 30 +++++++++++++ botfiles/.config/vifm/vifmrc | 47 +++++++++------------ 3 files changed, 55 insertions(+), 30 deletions(-) create mode 100644 botfiles/.config/vifm/colors/biual.vifm diff --git a/botfiles/.config/gtk-2.0/gtkfilechooser.ini b/botfiles/.config/gtk-2.0/gtkfilechooser.ini index 24f2c76..0346f6c 100644 --- a/botfiles/.config/gtk-2.0/gtkfilechooser.ini +++ b/botfiles/.config/gtk-2.0/gtkfilechooser.ini @@ -2,10 +2,10 @@ LocationMode=path-bar ShowHidden=true ShowSizeColumn=true -GeometryX=540 -GeometryY=237 +GeometryX=263 +GeometryY=81 GeometryWidth=840 GeometryHeight=630 -SortColumn=name -SortOrder=ascending +SortColumn=modified +SortOrder=descending StartupMode=recent diff --git a/botfiles/.config/vifm/colors/biual.vifm b/botfiles/.config/vifm/colors/biual.vifm new file mode 100644 index 0000000..64a813f --- /dev/null +++ b/botfiles/.config/vifm/colors/biual.vifm @@ -0,0 +1,30 @@ +highlight clear + +highlight Win ctermfg=white ctermbg=none cterm=none +highlight Directory ctermfg=blue ctermbg=default cterm=bold +highlight Link ctermfg=cyan ctermbg=default cterm=none +highlight BrokenLink ctermfg=red ctermbg=default cterm=bold +highlight Socket ctermfg=magenta ctermbg=default cterm=bold +highlight Device ctermfg=red ctermbg=default cterm=bold +highlight Fifo ctermfg=red ctermbg=default cterm=bold +highlight Executable ctermfg=green ctermbg=default cterm=bold +highlight Selected ctermfg=black ctermbg=8 cterm=bold +highlight CurrLine ctermfg=8 ctermbg=white cterm=bold,reverse +highlight TopLine ctermfg=none ctermbg=none cterm=none +highlight OtherLine ctermfg=7 ctermbg=none +highlight TopLineSel ctermfg=white ctermbg=none cterm=bold +highlight StatusLine ctermfg=7 ctermbg=234 cterm=none +highlight WildMenu ctermfg=4 ctermbg=black cterm=reverse +highlight CmdLine ctermfg=7 ctermbg=233 cterm=none +highlight ErrorMsg ctermfg=red ctermbg=233 cterm=none +highlight Border ctermfg=black ctermbg=none cterm=none +highlight JobLine ctermfg=black ctermbg=white cterm=none,reverse +highlight SuggestBox ctermfg=8 ctermbg=233 cterm=none +highlight CmpMismatch ctermfg=white ctermbg=red cterm=bold +highlight AuxWin ctermfg=default ctermbg=default cterm=none,underline,reverse,standout,italic +highlight TabLine ctermfg=9 ctermbg=0 cterm=none +highlight TabLineSel ctermfg=default ctermbg=default cterm=none,reverse + +highlight /^.*\.(mp3|ogg|oga|flac|m4a)$/ ctermfg=magenta +highlight /^.*\.(jpg|jpeg|png|gif|tiff|webp|bmp|svg|svgz)$/ ctermfg=yellow +highlight /^.*\.(zip|gz|bz2|xz|tar|tgz|tbz2|7z|rar|iso|rpm|deb)$/ ctermfg=red diff --git a/botfiles/.config/vifm/vifmrc b/botfiles/.config/vifm/vifmrc index d1c0233..4ff58c7 100644 --- a/botfiles/.config/vifm/vifmrc +++ b/botfiles/.config/vifm/vifmrc @@ -1,19 +1,15 @@ -" vim: filetype=vifm : -" Sample configuration file for vifm (last updated: 2 June, 2019) -" You can edit this file by hand. -" The " character at the beginning of a line comments out the line. -" Blank lines are ignored. -" The basic format for each item is shown with an example. +" +" ██ ████ +" ░░ ░██░ +" ██ ██ ██ ██████ ██████████ +" ░██ ░██░██░░░██░ ░░██░░██░░██ +" ░░██ ░██ ░██ ░██ ░██ ░██ ░██ +" ░░████ ░██ ░██ ░██ ░██ ░██ +" ░░██ ░██ ░██ ███ ░██ ░██ +" ░░ ░░ ░░ ░░░ ░░ ░░ -" ------------------------------------------------------------------------------ - -" Command used to edit files in various contexts. The default is vim. -" If you would like to use another vi clone such as Elvis or Vile -" you will need to change this setting. - -set vicmd=vim -" set vicmd=elvis\ -G\ termcap -" set vicmd=vile +" Editor +set vicmd=nvim " This makes vifm perform file operations on its own instead of relying on " standard utilities like `cp`. While using `cp` and alike is a more universal @@ -64,7 +60,7 @@ set norunexec " Selected color scheme -colorscheme Default +colorscheme biual " Format for displaying time in file list. For example: " TIME_STAMP_FORMAT=%m/%d-%H:%M @@ -215,7 +211,7 @@ fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob, " Web filextype *.html,*.htm \ {Open with dwb} - \ dwb %f %i &, + \ qutebrowser %f %i &, \ {Open with firefox} \ firefox %f &, \ {Open with uzbl} @@ -231,14 +227,10 @@ fileviewer *.[1-8] man ./%c | col -b " Images filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm - \ {View in sxiv} - \ sxiv %f, - \ {View in gpicview} - \ gpicview %c, - \ {View in shotwell} - \ shotwell, + \ {View in feh} + \ feh -F %d --start-at %d/%c 2>/dev/null fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm - \ identify %f + \ gimp %f " OpenRaster filextype *.ora @@ -376,8 +368,8 @@ filextype */ " What should be saved automatically between vifm sessions. Drop "savedirs" " value if you don't want vifm to remember last visited directories for you. -set vifminfo=dhistory,savedirs,chistory,state,tui,shistory, - \phistory,fhistory,dirstack,registers,bookmarks,bmarks +set vifminfo=chistory,shistory, + \phistory,dirstack,registers,bookmarks,bmarks " ------------------------------------------------------------------------------ @@ -481,3 +473,6 @@ nnoremap :delete " vifm --server-name "$VIFM_SERVER_NAME" --remote +"cd '$PWD'" " " let $VIFM_SERVER_NAME = v:servername + + +" vim: filetype=vifm