Added thermals to bar and some small tweaks

Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
Marko Korhonen 2019-11-19 14:31:08 +02:00
parent 127f2cb62f
commit 3e13f773ac
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5
2 changed files with 24 additions and 5 deletions

View file

@ -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 "
}
}

View file

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