Compare commits
No commits in common. "b80c011052d1ce2c125b73287862e370d806f0d4" and "2c4ae9c4259bcbd545ccc98cdfa48f3657236e78" have entirely different histories.
b80c011052
...
2c4ae9c425
2 changed files with 5 additions and 11 deletions
|
@ -38,7 +38,7 @@
|
||||||
; Widgets
|
; Widgets
|
||||||
(defwidget bar-left []
|
(defwidget bar-left []
|
||||||
(box :halign "start"
|
(box :halign "start"
|
||||||
:spacing 12
|
:spacing 10
|
||||||
: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 $(id -u) pkg-updates.sh"
|
(eventbox :onclick "pkill -SIGUSR1 -u 1000 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 12
|
:spacing 10
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
(brightness)
|
(brightness)
|
||||||
(battery :percent {EWW_BATTERY.BAT0.capacity}
|
(battery :percent {EWW_BATTERY.BAT0.capacity}
|
||||||
|
|
|
@ -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/hypr/wall0.png"
|
[hypr]="/usr/share/hyprland/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 wlogout wofi; do
|
for component in desktop_wallpaper eww hyprland kitty mako pywalfox waybar wlogout wofi; do
|
||||||
set_${component}_theme &
|
set_${component}_theme &
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -217,12 +217,6 @@ 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