diff --git a/.scripts/theme-changer.sh b/.scripts/theme-changer.sh index 142cf2d..c06db48 100755 --- a/.scripts/theme-changer.sh +++ b/.scripts/theme-changer.sh @@ -101,7 +101,7 @@ function set_theme { set_eww_scss_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 & done } @@ -217,6 +217,12 @@ function set_eww_theme { value="${eww_variables[$key]}" sed -i "s~$key:[^;]*~$key: $value~" "$HOME/.config/eww/eww.scss" 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 }