diff --git a/scripts/color-mode b/scripts/color-mode index e2729b7..b7f0ab5 100755 --- a/scripts/color-mode +++ b/scripts/color-mode @@ -14,6 +14,10 @@ expand='s/(.*)@(\w+)/echo -n "\1"\\"$(xrdb -get \2)\\"/; /\$/e' sed -r "$expand" "$XDG_CONFIG_HOME/zathura/zathurarc.in" > "$XDG_CONFIG_HOME/zathura/zathurarc" sed -r "$expand" "$XDG_CONFIG_HOME/dunst/dunstrc.in" > "$XDG_CONFIG_HOME/dunst/dunstrc" +# toggle nheko theme +theme="${1%dark}" +sed -i "s/theme=.*/theme=${theme:-dawn}/" "$XDG_CONFIG_HOME/nheko.conf" + xsetroot -fg "$(xrdb -get root.foreground)" \ -bg "$(xrdb -get root.background)" \ -bitmap ~/img/tiles/tile.xbm \