Compare commits

..

3 commits

Author SHA1 Message Date
b80c011052
Fix Hyprland default wallpaper path 2024-11-18 16:12:31 +01:00
bc976a1fbb
Use eww by default 2024-11-18 16:12:09 +01:00
3da3385012
eww update 2024-11-18 16:11:45 +01:00
2 changed files with 11 additions and 5 deletions

View file

@ -38,7 +38,7 @@
; Widgets ; Widgets
(defwidget bar-left [] (defwidget bar-left []
(box :halign "start" (box :halign "start"
:spacing 10 :spacing 12
:space-evenly false :space-evenly false
(workspaces) (workspaces)
(tray) (tray)
@ -78,7 +78,7 @@
) )
(defwidget packages-updates [] (defwidget packages-updates []
(eventbox :onclick "pkill -SIGUSR1 -u 1000 pkg-updates.sh" (eventbox :onclick "pkill -SIGUSR1 -u $(id -u) pkg-updates.sh"
(label :text "󰏖 ${packages-updates.count}" (label :text "󰏖 ${packages-updates.count}"
:class "${packages-updates.class}" :class "${packages-updates.class}"
:tooltip "${packages-updates.tooltip}" :tooltip "${packages-updates.tooltip}"
@ -129,7 +129,7 @@
(defwidget bar-right [] (defwidget bar-right []
(box :halign "end" (box :halign "end"
:spacing 10 :spacing 12
:space-evenly false :space-evenly false
(brightness) (brightness)
(battery :percent {EWW_BATTERY.BAT0.capacity} (battery :percent {EWW_BATTERY.BAT0.capacity}

View file

@ -6,7 +6,7 @@ declare -A albums=(
[sfw]="$albums_dir/SFW" [sfw]="$albums_dir/SFW"
[nsfw]="$albums_dir/( ͡° ͜ʖ ͡°)" [nsfw]="$albums_dir/( ͡° ͜ʖ ͡°)"
[bonk]="$albums_dir/Bonk" [bonk]="$albums_dir/Bonk"
[hypr]="/usr/share/hyprland/wall0.png" [hypr]="/usr/share/hypr/wall0.png"
) )
# Declare outside of function to make them global. # Declare outside of function to make them global.
@ -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
} }