From f4cf29578d5e87502e67e220dbe574bec9f62308 Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Mon, 11 Dec 2023 00:18:42 +0100 Subject: [PATCH] Backlight info in waybar --- hmModules/waybar/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hmModules/waybar/default.nix b/hmModules/waybar/default.nix index 29b9b44..0cd95ab 100644 --- a/hmModules/waybar/default.nix +++ b/hmModules/waybar/default.nix @@ -30,6 +30,7 @@ "cpu" "memory" "temperature" + "backlight" "battery" "clock" ]; @@ -106,7 +107,13 @@ critical-threshold = 80; format = "{temperatureC}°C {icon}"; format-icons = ["" "" ""]; - hwmon-path = "/sys/class/thermal/thermal_zone4/temp"; + hwmon-path = "/sys/class/hwmon/hwmon2/temp1_input"; # picard FIXME + # hwmon-path = "/sys/class/thermal/thermal_zone4/temp"; # thinkpad + }; + backlight = { + device = "ddcci2"; + format = "{percent}% {icon}"; + format-icons = ["" ""]; }; }; };