From cd40badbe02acfa760cc520e599314df0f383831 Mon Sep 17 00:00:00 2001 From: Henrik Bakken Date: Wed, 7 Oct 2026 21:36:37 +0200 Subject: [PATCH] waybar use default temperature module --- CONFIG/waybar/config.jsonc | 9 ++++----- custom-droneship/CONFIG/waybar/local_config.jsonc | 2 +- custom-mothership/CONFIG/waybar/local_config.jsonc | 2 +- custom-sl3/CONFIG/waybar/local_config.jsonc | 2 +- custom-spro5/CONFIG/waybar/local_config.jsonc | 2 +- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/CONFIG/waybar/config.jsonc b/CONFIG/waybar/config.jsonc index 892cb06..0914b7a 100644 --- a/CONFIG/waybar/config.jsonc +++ b/CONFIG/waybar/config.jsonc @@ -85,11 +85,10 @@ "on-click": "footclient --app-id floating_shell --window-size-chars 120x45 -e btop" }, - "custom/cputemp": { - "exec": "sensors | grep 'CPU:' | awk '{print substr($2,2); }'", - "format": " {}", - "on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 80x45 watch sensors'", - "interval": 1 + "temperature": { + "critical-threshold": 80, + "format": " {temperatureC}°C", + "on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 80x45 -e watch sensors'" }, "memory": { diff --git a/custom-droneship/CONFIG/waybar/local_config.jsonc b/custom-droneship/CONFIG/waybar/local_config.jsonc index 659b4ff..0ecc101 100644 --- a/custom-droneship/CONFIG/waybar/local_config.jsonc +++ b/custom-droneship/CONFIG/waybar/local_config.jsonc @@ -26,7 +26,7 @@ "modules-right": [ "idle_inhibitor", "cpu", - "custom/cputemp", + "temperature", "memory", "custom/nvidia", "disk#root", diff --git a/custom-mothership/CONFIG/waybar/local_config.jsonc b/custom-mothership/CONFIG/waybar/local_config.jsonc index 00586ed..5376aa8 100644 --- a/custom-mothership/CONFIG/waybar/local_config.jsonc +++ b/custom-mothership/CONFIG/waybar/local_config.jsonc @@ -26,7 +26,7 @@ "modules-right": [ "idle_inhibitor", "cpu", - "custom/cputemp", + "temperature", "memory", "custom/nvidia", "disk#root", diff --git a/custom-sl3/CONFIG/waybar/local_config.jsonc b/custom-sl3/CONFIG/waybar/local_config.jsonc index 46b61b7..5ae7340 100644 --- a/custom-sl3/CONFIG/waybar/local_config.jsonc +++ b/custom-sl3/CONFIG/waybar/local_config.jsonc @@ -12,7 +12,7 @@ "modules-right": [ "idle_inhibitor", "cpu", - "custom/cputemp", + "temperature", "memory", "disk#root", "backlight", diff --git a/custom-spro5/CONFIG/waybar/local_config.jsonc b/custom-spro5/CONFIG/waybar/local_config.jsonc index 46b61b7..5ae7340 100644 --- a/custom-spro5/CONFIG/waybar/local_config.jsonc +++ b/custom-spro5/CONFIG/waybar/local_config.jsonc @@ -12,7 +12,7 @@ "modules-right": [ "idle_inhibitor", "cpu", - "custom/cputemp", + "temperature", "memory", "disk#root", "backlight",