color-mode: toggle nheko theme

This commit is contained in:
Michele Guerini Rocco 2021-11-26 15:11:11 +01:00
parent 641136ee34
commit 05e22f59b7
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

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