waybar: toggle light and dark theme

This commit is contained in:
lupan committed 2024-06-16 10:47:58 +02:00
1 parent e08245989a
commit 3810c83e14
5 files changed
+33 -11

No files matched your search

+5
View File
@@ -33,3 +33,8 @@ if [ -f ~/.config/xsettingsd/xsettingsd.conf ]; then
pkill -HUP -x xsettingsd
gsettings set org.gnome.desktop.interface gtk-theme "${GTK_THEME}"
fi
# waybar
if [ -f ~/.config/waybar/style.css ]; then
sed -i -E "s#file:///.*/(light|dark)[.]css#file://$HOME/.config/waybar/$THEME.css#" ~/.config/waybar/style.css
fi