Merge branch 'dev' into gentoo

system: fix switch-colors
This commit is contained in:
David JULIEN 2021-10-23 04:35:39 +02:00
commit 67bbfc215e
No known key found for this signature in database
GPG Key ID: 4B388E8BD9D47382

View File

@ -13,7 +13,7 @@
trim() { rev | cut -d'_' -f1 | rev; } trim() { rev | cut -d'_' -f1 | rev; }
switch_scheme() { 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" [ "dark" = "$current" ] && new="light" || new="dark"
select_nvim_scheme select_nvim_scheme
set_scheme "$new" "$nvim_scheme" set_scheme "$new" "$nvim_scheme"