[vifm] Add to light-dark toggle

This commit is contained in:
Tibo De Peuter 2023-11-02 17:05:09 +01:00
parent 70b163cf0c
commit 856bfa82e8
4 changed files with 50 additions and 4 deletions

View file

@ -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}`

View file

@ -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

View file

@ -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

View file

@ -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.