Add temperature monitor

This commit is contained in:
Salt 2024-07-20 13:21:45 -05:00
parent 43ca837317
commit 51ecf7e199
2 changed files with 24 additions and 2 deletions

View File

@ -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,

View File

@ -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;