added temperature to cpu waybar

This commit is contained in:
twoneis 2024-05-27 08:05:40 +02:00
parent 859e13d501
commit e7b406455c
2 changed files with 17 additions and 2 deletions

View file

@ -25,6 +25,7 @@ in lib.mkIf (osConfig.withNiri) {
modules-left = [
"memory"
"cpu"
"temperature"
];
modules-center = [
"clock"
@ -36,7 +37,13 @@ in lib.mkIf (osConfig.withNiri) {
];
"cpu" = {
interval = 10;
format = "{usage}% ";
format = "{usage}%";
};
"temperature" = {
hwmon-path = "/sys/class/hwmon/hwmon2/temp1_input";
format = "{temperatureC}°C ";
interval = 10;
tooltip = false;
};
"memory" = {
interval = 30;

View file

@ -26,13 +26,17 @@ window#waybar {
#clock,
#battery,
#cpu,
#memory,
#network,
#temperature,
#wireplumber {
padding: 0 15px;
}
#cpu {
padding: 0 0 0 15px;
}
/*-----Indicators----*/
#battery.charging {
color: #31748f;
@ -43,3 +47,7 @@ window#waybar {
#battery.critical:not(.charging) {
color: #eb6f92;
}
#temperature.critical {
color: #eb6f92;
}