Add temperature to Waybar
This commit is contained in:
parent
84e5d2735e
commit
26804d333b
|
@ -5,7 +5,7 @@
|
|||
"height": 36,
|
||||
"modules-left": ["idle_inhibitor", "sway/workspaces", "sway/mode"],
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": ["network", "pulseaudio", "backlight", "cpu", "memory", "battery", "tray"],
|
||||
"modules-right": ["network", "pulseaudio", "backlight", "cpu", "temperature", "memory", "battery", "tray"],
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": true
|
||||
},
|
||||
|
@ -80,5 +80,13 @@
|
|||
"backlight": {
|
||||
"format": "{icon} {percent}%",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
||||
},
|
||||
"temperature": {
|
||||
"thermal-zone": 1,
|
||||
"critical-threshold": 80,
|
||||
"format": "{icon} {temperatureC}°C",
|
||||
"format-critical": "{icon} {temperatureC}°C",
|
||||
"format-icons": ["", "", ""],
|
||||
"interval": 5
|
||||
}
|
||||
}
|
||||
|
|
|
@ -82,6 +82,7 @@ window#waybar.hidden {
|
|||
#memory,
|
||||
#disk,
|
||||
#temperature,
|
||||
#temperature,
|
||||
#backlight,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
|
@ -197,3 +198,13 @@ label:focus {
|
|||
color: @violet;
|
||||
box-shadow: inset 0 3px @violet;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
color: @yellow;
|
||||
box-shadow: inset 0 3px @yellow;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
color: @orange;
|
||||
box-shadow: inset 0 3px @orange;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue