diff --git a/.config/waybar/config b/.config/waybar/config index afd4c83..f6149b4 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -20,7 +20,7 @@ "network", "cpu", "memory", - "temperature", + "custom/temperature", "backlight", "battery", "battery#bat2", @@ -99,6 +99,7 @@ // "thermal-zone": 2, // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", "critical-threshold": 80, + "exec": "ryzen-cpu-temp", // "format-critical": "{temperatureC}°C {icon}", "format": "{temperatureC}°C {icon}", "format-icons": [ @@ -107,6 +108,18 @@ "" ] }, + "custom/temperature": { + "interval": 10, + "critical-threshold": 80, + "exec": "ryzen-cpu-temp", + "format-critical": "{} {icon}", + "format": "{}°C {icon}", + "format-icons": [ + "", + "", + "" + ] + }, "backlight": { // "device": "acpi_video1", "format": "{percent}% {icon}", diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 9e31ca5..ea270a3 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -75,6 +75,9 @@ window#waybar.chromium { #tray, #mode, #idle_inhibitor, +#custom-temperature, +#custom-watson, +#custom-calc, #mpd { padding: 0 4px; margin: 0 4px; @@ -170,12 +173,3 @@ label:focus { #mpd.paused { } -#custom-watson { - padding: 0 10px; - margin: 0 4px; -} - -#custom-calc { - padding: 0 10px; - margin: 0 4px; -}