Use eww by default
This commit is contained in:
parent
3da3385012
commit
bc976a1fbb
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue