diff --git a/home/.config/waybar/config b/home/.config/waybar/config index 98d2d01..066a1c7 100644 --- a/home/.config/waybar/config +++ b/home/.config/waybar/config @@ -7,7 +7,7 @@ "modules-right": [ "idle_inhibitor", "pulseaudio", - "network", + "custom/yay", "cpu", "memory", "battery", @@ -116,5 +116,12 @@ "on-click-right": "playerctl next", "on-scroll-up": "playerctl volume 0.05+", "on-scroll-down": "playerctl volume 0.05-" + }, + "custom/yay":{ + "tooltip": false, + "format": "{} ", + "exec": "yay -Qu | wc -l", + "interval": 60, + "on-click": "alacritty -e yay" } } diff --git a/home/.config/waybar/style.css b/home/.config/waybar/style.css index d75c813..378f741 100644 --- a/home/.config/waybar/style.css +++ b/home/.config/waybar/style.css @@ -26,7 +26,7 @@ window#waybar { background: #64727D; } -#clock, #battery, #cpu, #memory, #backlight, #network, #pulseaudio, #custom-playerctl, #tray, #mode, #idle_inhibitor { +#clock, #battery, #cpu, #memory, #backlight, #network, #pulseaudio, #custom-playerctl, #custom-yay, #tray, #mode, #idle_inhibitor { padding: 0 10px; margin: 0 5px; } @@ -100,6 +100,10 @@ window#waybar { color: #2a5c45; } +#custom-yay { + background-color: #64727D; +} + #tray { background-color: #282828; }