Compare commits
3 commits
2c4ae9c425
...
b80c011052
Author | SHA1 | Date | |
---|---|---|---|
b80c011052 | |||
bc976a1fbb | |||
3da3385012 |
2 changed files with 11 additions and 5 deletions
|
@ -38,7 +38,7 @@
|
|||
; Widgets
|
||||
(defwidget bar-left []
|
||||
(box :halign "start"
|
||||
:spacing 10
|
||||
:spacing 12
|
||||
:space-evenly false
|
||||
(workspaces)
|
||||
(tray)
|
||||
|
@ -78,7 +78,7 @@
|
|||
)
|
||||
|
||||
(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}"
|
||||
:class "${packages-updates.class}"
|
||||
:tooltip "${packages-updates.tooltip}"
|
||||
|
@ -129,7 +129,7 @@
|
|||
|
||||
(defwidget bar-right []
|
||||
(box :halign "end"
|
||||
:spacing 10
|
||||
:spacing 12
|
||||
:space-evenly false
|
||||
(brightness)
|
||||
(battery :percent {EWW_BATTERY.BAT0.capacity}
|
||||
|
|
|
@ -6,7 +6,7 @@ declare -A albums=(
|
|||
[sfw]="$albums_dir/SFW"
|
||||
[nsfw]="$albums_dir/( ͡° ͜ʖ ͡°)"
|
||||
[bonk]="$albums_dir/Bonk"
|
||||
[hypr]="/usr/share/hyprland/wall0.png"
|
||||
[hypr]="/usr/share/hypr/wall0.png"
|
||||
)
|
||||
|
||||
# Declare outside of function to make them global.
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue