From 51ecf7e1993c719182aa3fdef240c7c342408a70 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Sat, 20 Jul 2024 13:21:45 -0500 Subject: [PATCH] Add temperature monitor --- sericea/.config/waybar/config | 12 ++++++++++-- sericea/.config/waybar/style.css | 14 ++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/sericea/.config/waybar/config b/sericea/.config/waybar/config index 89469356..5d4ba9c4 100644 --- a/sericea/.config/waybar/config +++ b/sericea/.config/waybar/config @@ -34,9 +34,9 @@ "layer": "top", "position": "bottom", "height": 40, - "modules-left": ["idle_inhibitor", "gamemode", "custom/backup", "battery", "cpu", "memory", "network"], + "modules-left": ["gamemode", "custom/backup", "battery", "cpu", "memory", "temperature", "network"], "modules-center": [], - "modules-right": ["mpris", "pulseaudio", "backlight", "clock"], + "modules-right": ["mpris", "pulseaudio", "backlight", "idle_inhibitor", "clock"], "clock": { "format": "{:%a %b %d %I:%M %p}", "format-alt": "{:%Y-%m-%d}", @@ -105,6 +105,14 @@ "regular": 50 } }, + "temperature": { + "format": " {temperatureC}°", + "states": { + "critical": 90, + "warning": 80, + "regular": 70 + } + }, "mpris": { "interval": 1, "artist-len": 30, diff --git a/sericea/.config/waybar/style.css b/sericea/.config/waybar/style.css index 24945b07..f9268651 100644 --- a/sericea/.config/waybar/style.css +++ b/sericea/.config/waybar/style.css @@ -149,6 +149,20 @@ window#waybar { color: #ebdbb2; padding: 0 1em; } +/* Temperature*/ +#temperature { + padding: 0 1em; + color: #504945; +} +#temperature.critical { + color: #fb4934; +} +#temperature.warning { + color: #fabd2f; +} +#temperature.regular { + color: #ebdbb2; +} /* Custom modules */ #custom-backup { color: #fb4934;