[system]fix: switch-colors

This commit is contained in:
David JULIEN 2021-10-23 04:34:08 +02:00
parent ca53077a59
commit 1b55edd15c

View File

@ -13,7 +13,7 @@
trim() { rev | cut -d'_' -f1 | rev; }
switch_scheme() {
current="$(ls -l $XDG_CONFIG_HOME/X11/xcolors | trim)"
current="$(ls -l $XDG_STATE_HOME/xcolors | trim)"
[ "dark" = "$current" ] && new="light" || new="dark"
select_nvim_scheme
set_scheme "$new" "$nvim_scheme"