From babec6336f50a9d11f73975d737f73fa690b90ef Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Tue, 1 Sep 2026 10:06:38 +0200 Subject: [PATCH] waybar: Pin battery module to BAT0 Bluetooth HID devices (e.g. a mouse) appearing as power_supply entries in sysfs make waybar's Battery::refreshBatteries() throw an uncaught exception and abort. Restricting to BAT0 avoids enumerating those devices. --- hosts/pinwheel/modules/waybar/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/pinwheel/modules/waybar/default.nix b/hosts/pinwheel/modules/waybar/default.nix index 690995b..1dd6b36 100644 --- a/hosts/pinwheel/modules/waybar/default.nix +++ b/hosts/pinwheel/modules/waybar/default.nix @@ -208,6 +208,7 @@ in }; battery = { + "bat" = "BAT0"; "interval" = 60; "format" = "{icon} {capacity}%"; "format-time" = "{H}h {M}min";