From bc976a1fbbe3604738c6f9a9fedeba50497a5f68 Mon Sep 17 00:00:00 2001 From: Viyurz Date: Mon, 18 Nov 2024 16:12:09 +0100 Subject: [PATCH] Use eww by default --- .scripts/theme-changer.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 }