Use eww by default

This commit is contained in:
Viyurz 2024-11-18 16:12:09 +01:00
parent 3da3385012
commit bc976a1fbb
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8

View file

@ -101,7 +101,7 @@ function set_theme {
set_eww_scss_file set_eww_scss_file
set_gtk_css_file set_gtk_css_file
for component in desktop_wallpaper eww hyprland kitty mako pywalfox waybar wlogout wofi; do for component in desktop_wallpaper eww hyprland kitty mako pywalfox wlogout wofi; do
set_${component}_theme & set_${component}_theme &
done done
} }
@ -217,6 +217,12 @@ function set_eww_theme {
value="${eww_variables[$key]}" value="${eww_variables[$key]}"
sed -i "s~$key:[^;]*~$key: $value~" "$HOME/.config/eww/eww.scss" sed -i "s~$key:[^;]*~$key: $value~" "$HOME/.config/eww/eww.scss"
done done
if pgrep -u "$USER" eww > /dev/null; then
eww active-windows | grep -q 'bar: bar' || eww open bar
else
hyprctl -q dispatch exec eww open bar
fi
} }