From d96a001956b4fb7606909bab40dde9de660e6684 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Mon, 19 Aug 2024 21:45:13 -0400 Subject: [PATCH] waybar: only enable ppd and battery module on laptopMode --- homeManagerModules/services/waybar/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/homeManagerModules/services/waybar/default.nix b/homeManagerModules/services/waybar/default.nix index e96cecbf..d5899ad5 100644 --- a/homeManagerModules/services/waybar/default.nix +++ b/homeManagerModules/services/waybar/default.nix @@ -256,7 +256,11 @@ in { }; "group/hardware" = { - modules = ["pulseaudio" "bluetooth" "network" "power-profiles-daemon" "battery"]; + modules = + ["pulseaudio" "bluetooth" "network"] + ++ lib.optionals (cfg.laptopMode) + ["power-profiles-daemon" "battery"]; + orientation = "horizontal"; };