Added thermals to bar and some small tweaks
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
parent
127f2cb62f
commit
3e13f773ac
2 changed files with 24 additions and 5 deletions
|
@ -9,6 +9,7 @@
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
"custom/yay",
|
"custom/yay",
|
||||||
"cpu",
|
"cpu",
|
||||||
|
"temperature",
|
||||||
"memory",
|
"memory",
|
||||||
"battery",
|
"battery",
|
||||||
"clock",
|
"clock",
|
||||||
|
@ -47,15 +48,15 @@
|
||||||
},
|
},
|
||||||
"clock": {
|
"clock": {
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"format": "{:%Y-%m-%d %H:%M}"
|
"format": "{:%Y-%m-%d %H:%M} "
|
||||||
},
|
},
|
||||||
"cpu": {
|
"cpu": {
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"format": "{usage}% CPU"
|
"format": "{usage}% "
|
||||||
},
|
},
|
||||||
"memory": {
|
"memory": {
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"format": "{}% RAM"
|
"format": "{}% "
|
||||||
},
|
},
|
||||||
"backlight": {
|
"backlight": {
|
||||||
// "device": "acpi_video1",
|
// "device": "acpi_video1",
|
||||||
|
@ -121,7 +122,10 @@
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"format": "{} ",
|
"format": "{} ",
|
||||||
"exec": "yay -Qu | wc -l",
|
"exec": "yay -Qu | wc -l",
|
||||||
"interval": 60,
|
"interval": 300,
|
||||||
"on-click": "alacritty -e yay"
|
"on-click": "alacritty -e yay"
|
||||||
|
},
|
||||||
|
"temperature": {
|
||||||
|
"format": "{temperatureC}°C "
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@ window#waybar {
|
||||||
background: #64727D;
|
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;
|
padding: 0 10px;
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
}
|
}
|
||||||
|
@ -62,6 +62,21 @@ window#waybar {
|
||||||
animation-direction: alternate;
|
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 {
|
#cpu {
|
||||||
background: #2ecc71;
|
background: #2ecc71;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
|
|
Loading…
Reference in a new issue