Adds yay updater

This commit is contained in:
Michel Fedde 2025-03-15 13:32:20 +01:00
parent a0c00b0b8f
commit 43f41958f5
5 changed files with 27 additions and 3 deletions

View file

@ -200,5 +200,15 @@
"custom/hypr-class": {
"format": "󰲌 ",
"on-click": "hyprctl activewindow | grep 'class:' | awk -F': ' '{print $2}' | wl-copy -n"
},
"custom/updates": {
"format": "{icon}{0}",
"return-type": "json",
"format-icons": {
"pending-updates": " ",
"updated": " "
},
"exec-if": "which waybar-updates",
"exec": "waybar-updates"
}
}

View file

@ -33,6 +33,7 @@
"modules-right": [
"network#speed",
"custom/updates",
"group/laptop",
"custom/separator#line",
"tray",

View file

@ -96,7 +96,10 @@ window#waybar {
#custom-weather.severe,
#custom-weather.showyIcyDay,
#custom-weather.snowyIcyNight,
#custom-weather.sunnyDay {
#custom-weather.sunnyDay,
#custom-updates,
#custom-updates.pending-updates
{
color: $foreground;
padding: 3px 6px 3px 6px;
}
@ -200,3 +203,7 @@ window#waybar {
#custom-swaync:hover {
background-color: $green;
}
#custom-updates.pending-updates {
background-color: dodgerblue;
}

View file

@ -85,7 +85,9 @@ window#waybar {
#custom-weather.severe,
#custom-weather.showyIcyDay,
#custom-weather.snowyIcyNight,
#custom-weather.sunnyDay {
#custom-weather.sunnyDay,
#custom-updates,
#custom-updates.pending-updates {
color: #d5c4a1;
padding: 3px 6px 3px 6px;
}
@ -190,4 +192,8 @@ window#waybar {
background-color: #b8bb26;
}
#custom-updates.pending-updates {
background-color: dodgerblue;
}
/*# sourceMappingURL=style.css.map */

View file

@ -16,7 +16,7 @@ fi
if [ $XDG_SESSION_DESKTOP = "Hyprland" ]; then
yay -S --needed hyprland \
waybar \
waybar waybar-updates \
hyprlock \
swww \
hyprswitch \