Adds yay updater
This commit is contained in:
parent
a0c00b0b8f
commit
43f41958f5
5 changed files with 27 additions and 3 deletions
|
|
@ -200,5 +200,15 @@
|
||||||
"custom/hypr-class": {
|
"custom/hypr-class": {
|
||||||
"format": " ",
|
"format": " ",
|
||||||
"on-click": "hyprctl activewindow | grep 'class:' | awk -F': ' '{print $2}' | wl-copy -n"
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@
|
||||||
|
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"network#speed",
|
"network#speed",
|
||||||
|
"custom/updates",
|
||||||
"group/laptop",
|
"group/laptop",
|
||||||
"custom/separator#line",
|
"custom/separator#line",
|
||||||
"tray",
|
"tray",
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,10 @@ window#waybar {
|
||||||
#custom-weather.severe,
|
#custom-weather.severe,
|
||||||
#custom-weather.showyIcyDay,
|
#custom-weather.showyIcyDay,
|
||||||
#custom-weather.snowyIcyNight,
|
#custom-weather.snowyIcyNight,
|
||||||
#custom-weather.sunnyDay {
|
#custom-weather.sunnyDay,
|
||||||
|
#custom-updates,
|
||||||
|
#custom-updates.pending-updates
|
||||||
|
{
|
||||||
color: $foreground;
|
color: $foreground;
|
||||||
padding: 3px 6px 3px 6px;
|
padding: 3px 6px 3px 6px;
|
||||||
}
|
}
|
||||||
|
|
@ -200,3 +203,7 @@ window#waybar {
|
||||||
#custom-swaync:hover {
|
#custom-swaync:hover {
|
||||||
background-color: $green;
|
background-color: $green;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#custom-updates.pending-updates {
|
||||||
|
background-color: dodgerblue;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,9 @@ window#waybar {
|
||||||
#custom-weather.severe,
|
#custom-weather.severe,
|
||||||
#custom-weather.showyIcyDay,
|
#custom-weather.showyIcyDay,
|
||||||
#custom-weather.snowyIcyNight,
|
#custom-weather.snowyIcyNight,
|
||||||
#custom-weather.sunnyDay {
|
#custom-weather.sunnyDay,
|
||||||
|
#custom-updates,
|
||||||
|
#custom-updates.pending-updates {
|
||||||
color: #d5c4a1;
|
color: #d5c4a1;
|
||||||
padding: 3px 6px 3px 6px;
|
padding: 3px 6px 3px 6px;
|
||||||
}
|
}
|
||||||
|
|
@ -190,4 +192,8 @@ window#waybar {
|
||||||
background-color: #b8bb26;
|
background-color: #b8bb26;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#custom-updates.pending-updates {
|
||||||
|
background-color: dodgerblue;
|
||||||
|
}
|
||||||
|
|
||||||
/*# sourceMappingURL=style.css.map */
|
/*# sourceMappingURL=style.css.map */
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ fi
|
||||||
|
|
||||||
if [ $XDG_SESSION_DESKTOP = "Hyprland" ]; then
|
if [ $XDG_SESSION_DESKTOP = "Hyprland" ]; then
|
||||||
yay -S --needed hyprland \
|
yay -S --needed hyprland \
|
||||||
waybar \
|
waybar waybar-updates \
|
||||||
hyprlock \
|
hyprlock \
|
||||||
swww \
|
swww \
|
||||||
hyprswitch \
|
hyprswitch \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue