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