diff --git a/scripts/toggle-light-dark.sh b/scripts/toggle-light-dark.sh index 7ba6e5c..f36a637 100755 --- a/scripts/toggle-light-dark.sh +++ b/scripts/toggle-light-dark.sh @@ -71,6 +71,13 @@ if [ "$(command -v kitty)" ]; then kitten themes --config-file-name theme.conf "${theme}" fi +# Vifm +if [ "$(command -v vifm)" ]; then + echo "colorscheme ${theme} Default-256 Default" > ~/.config/vifm/theme.conf + # Update all running instances + vifm --remote -c "colorscheme ${theme}" +fi + # Vim # This does not reload the config, but will use it when you restart vim # Toggle an existing window using `:colorscheme ${theme}` diff --git a/stow/vifm/.config/vifm/colors/Personal.vifm b/stow/vifm/.config/vifm/colors/tdpeuter-dark.vifm similarity index 92% rename from stow/vifm/.config/vifm/colors/Personal.vifm rename to stow/vifm/.config/vifm/colors/tdpeuter-dark.vifm index abf323b..cf92123 100644 --- a/stow/vifm/.config/vifm/colors/Personal.vifm +++ b/stow/vifm/.config/vifm/colors/tdpeuter-dark.vifm @@ -34,3 +34,6 @@ highlight Win ctermfg=12 ctermbg=-1 cterm=none highlight Border ctermfg=-1 ctermbg=-1 cterm=none + +highlight CmdLine ctermfg=7 ctermbg=0 cterm=none + diff --git a/stow/vifm/.config/vifm/colors/tdpeuter-light.vifm b/stow/vifm/.config/vifm/colors/tdpeuter-light.vifm new file mode 100644 index 0000000..a27559f --- /dev/null +++ b/stow/vifm/.config/vifm/colors/tdpeuter-light.vifm @@ -0,0 +1,38 @@ +" +" ~/.config/vifm/colors/Personal.vifm +" + +" The standard ncurses colors are: +" Default = -1 = None, can be used for transparency or default color +" Black = 0 +" Red = 1 +" Green = 2 +" Yellow = 3 +" Blue = 4 +" Magenta = 5 +" Cyan = 6 +" White = 7 + +" Light versions of colors are also available (set bold attribute): +" LightBlack +" LightRed +" LightGreen +" LightYellow +" LightBlue +" LightMagenta +" LightCyan +" LightWhite + +" Available attributes (some of them can be combined): +" bold +" underline +" reverse or inverse +" standout +" none + +" Make background and vertical borders transparent. +highlight Win ctermfg=12 ctermbg=-1 cterm=none + +highlight Border ctermfg=-1 ctermbg=-1 cterm=none + +highlight CmdLine ctermfg=7 ctermbg=12 cterm=none diff --git a/stow/vifm/.config/vifm/vifmrc b/stow/vifm/.config/vifm/vifmrc index b4b588a..a965df1 100644 --- a/stow/vifm/.config/vifm/vifmrc +++ b/stow/vifm/.config/vifm/vifmrc @@ -2,6 +2,8 @@ " ~/.config/vifm/vifmrc " +source ~/.config/vifm/theme.conf + " vim: filetype=vifm : " Sample configuration file for vifm (last updated: 31 August, 2021) " You can edit this file by hand. @@ -76,10 +78,6 @@ set vimhelp set norunexec -" List of color schemes to try (picks the first one supported by the terminal) - -colorscheme Personal Default-256 Default - " Format for displaying time in file list. For example: " TIME_STAMP_FORMAT=%m/%d-%H:%M " See man date or man strftime for details.