diff --git a/.config/waybar/config b/.config/waybar/config index 4b28622..5096e6b 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -1,8 +1,25 @@ { "layer": "top", - "modules-left": ["sway/workspaces","sway/scratchpad","sway/window"], - "modules-center": ["clock"], - "modules-right": ["custom/notification", "backlight","pulseaudio","network","idle_inhibitor","battery"], + "modules-left": + [ + "sway/workspaces", + "sway/scratchpad", + "sway/window" + ], + "modules-center": + [ + "clock" + ], + "modules-right": + [ + "custom/notification", + "custom/pacman", + "backlight", + "pulseaudio", + "network", + "idle_inhibitor", + "battery" + ], "spacing": 0, "clock": @@ -149,6 +166,17 @@ "on-click": "swaync-client -t -sw", "on-click-right": "swaync-client -d -sw", "escape": true + }, + + "custom/pacman": { + "format": "{icon}{}", + "return-type": "json", + "format-icons": { + "pending-updates": " ", + "updated": "" + }, + "exec-if": "which waybar-updates", + "exec": "waybar-updates" } } diff --git a/.config/waybar/style.css b/.config/waybar/style.css index c23cb2f..4ff99fe 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -129,3 +129,24 @@ tooltip label padding: 0 10px; border-right: 1px solid @primary_fg_color; } + +@keyframes blink-update +{ + to + { + background-color: dodgerblue; + } +} + +#custom-pacman +{ + animation-timing-function: linear; + animation-iteration-count: infinite; + animation-direction: alternate; +} + +#custom-pacman.pending-updates +{ + animation-name: blink-update; + animation-duration: 3s; +}