4 files changed,
10 insertions(+),
5 deletions(-)
M
config/niri/waybar.jsonc
··· 7 7 "margin-left": 0, 8 8 "margin-right": 0, 9 9 "include": [ 10 - "~/.config/waybar/modules/info.json", 10 + "~/.config/waybar/modules/info.jsonc", 11 11 "~/.config/waybar/modules/niri.json" 12 12 ], 13 13 "modules-left": ["niri/workspaces", "niri/window"], 14 - "modules-center": ["clock"], 14 + "modules-center": ["clock", "temperature"], 15 15 "modules-right": [ 16 16 "niri/language", 17 17 "tray",
M
config/waybar/modules/info.json
→ config/waybar/modules/info.jsonc
··· 8 8 "format": " {:%a, %d %b %H:%M}", // replace %I with %H for 24h format 9 9 }, 10 10 11 + "temperature": { 12 + "hwmon-path": "/sys/devices/pci0000:00/0000:00:08.1/0000:03:00.0/hwmon/hwmon3/temp1_input", 13 + "format": " {temperatureC}°C" 14 + }, 15 + 11 16 "battery": { 12 17 "format": "{icon} {capacity}%", 13 18 "format-charging": "{icon} {capacity}%",
M
config/waybar/style.css
··· 29 29 border: 1px solid @bg-darker-color; 30 30 } 31 31 32 -#language, #cpu, #memory, #workspaces, #window, #tray, #clock, #battery, #power-profiles-daemon, #pulseaudio, #network, #backlight { 32 +#language, #cpu, #memory, #workspaces, #window, #tray, #clock, #battery, #power-profiles-daemon, #pulseaudio, #network, #backlight, #temperature { 33 33 background-color: @bg-darker-color; 34 34 color: @fg-color; 35 35 border-radius: 16px; ··· 38 38 } 39 39 40 40 #network, #backlight { color: @blue; } 41 -#cpu, #pulseaudio, #memory, #clock { color: @active-bg-color; } 41 +#cpu, #pulseaudio, #memory, #clock, #temperature { color: @active-bg-color; } 42 42 #language { color: @red; } 43 43 44 44 #workspaces button { color: @active-bg-color; }