mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
waybar: add cpu temperature widget
This commit is contained in:
parent
d547f3db83
commit
c51774f030
4 changed files with 10 additions and 5 deletions
|
|
@ -7,11 +7,11 @@
|
|||
"margin-left": 0,
|
||||
"margin-right": 0,
|
||||
"include": [
|
||||
"~/.config/waybar/modules/info.json",
|
||||
"~/.config/waybar/modules/info.jsonc",
|
||||
"~/.config/waybar/modules/niri.json"
|
||||
],
|
||||
"modules-left": ["niri/workspaces", "niri/window"],
|
||||
"modules-center": ["clock"],
|
||||
"modules-center": ["clock", "temperature"],
|
||||
"modules-right": [
|
||||
"niri/language",
|
||||
"tray",
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
"margin-right": 0,
|
||||
"include": [
|
||||
"~/.config/waybar/modules/hypr.json",
|
||||
"~/.config/waybar/modules/info.json"
|
||||
"~/.config/waybar/modules/info.jsonc"
|
||||
],
|
||||
|
||||
"modules-left": ["hyprland/workspaces", "hyprland/window"],
|
||||
|
|
|
|||
|
|
@ -8,6 +8,11 @@
|
|||
"format": " {:%a, %d %b %H:%M}", // replace %I with %H for 24h format
|
||||
},
|
||||
|
||||
"temperature": {
|
||||
"hwmon-path": "/sys/devices/pci0000:00/0000:00:08.1/0000:03:00.0/hwmon/hwmon3/temp1_input",
|
||||
"format": " {temperatureC}°C"
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": "{icon} {capacity}%",
|
||||
|
|
@ -29,7 +29,7 @@ tooltip {
|
|||
border: 1px solid @bg-darker-color;
|
||||
}
|
||||
|
||||
#language, #cpu, #memory, #workspaces, #window, #tray, #clock, #battery, #power-profiles-daemon, #pulseaudio, #network, #backlight {
|
||||
#language, #cpu, #memory, #workspaces, #window, #tray, #clock, #battery, #power-profiles-daemon, #pulseaudio, #network, #backlight, #temperature {
|
||||
background-color: @bg-darker-color;
|
||||
color: @fg-color;
|
||||
border-radius: 16px;
|
||||
|
|
@ -38,7 +38,7 @@ tooltip {
|
|||
}
|
||||
|
||||
#network, #backlight { color: @blue; }
|
||||
#cpu, #pulseaudio, #memory, #clock { color: @active-bg-color; }
|
||||
#cpu, #pulseaudio, #memory, #clock, #temperature { color: @active-bg-color; }
|
||||
#language { color: @red; }
|
||||
|
||||
#workspaces button { color: @active-bg-color; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue