diff --git a/home/.config/waybar/config b/home/.config/waybar/config index 066a1c7..9d7dfa2 100644 --- a/home/.config/waybar/config +++ b/home/.config/waybar/config @@ -9,6 +9,7 @@ "pulseaudio", "custom/yay", "cpu", + "temperature", "memory", "battery", "clock", @@ -47,15 +48,15 @@ }, "clock": { "tooltip": false, - "format": "{:%Y-%m-%d %H:%M}" + "format": "{:%Y-%m-%d %H:%M} " }, "cpu": { "tooltip": false, - "format": "{usage}% CPU" + "format": "{usage}% " }, "memory": { "tooltip": false, - "format": "{}% RAM" + "format": "{}% " }, "backlight": { // "device": "acpi_video1", @@ -121,7 +122,10 @@ "tooltip": false, "format": "{} ", "exec": "yay -Qu | wc -l", - "interval": 60, + "interval": 300, "on-click": "alacritty -e yay" + }, + "temperature": { + "format": "{temperatureC}°C " } } diff --git a/home/.config/waybar/style.css b/home/.config/waybar/style.css index 378f741..e486177 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, #custom-yay, #tray, #mode, #idle_inhibitor { +#clock, #battery, #cpu, #temperature, #memory, #backlight, #network, #pulseaudio, #custom-playerctl, #custom-yay, #tray, #mode, #idle_inhibitor { padding: 0 10px; margin: 0 5px; } @@ -62,6 +62,21 @@ window#waybar { animation-direction: alternate; } +#temperature { + background: #a3be8c; + color: black; +} + +#temperature.critical { + background: #bf616a; + color: white; + animation-name: blink; + animation-duration: 0.5s; + animation-timing-function: linear; + animation-iteration-count: infinite; + animation-direction: alternate; +} + #cpu { background: #2ecc71; color: #000000;