waybar: only enable ppd and battery module on laptopMode

This commit is contained in:
Aly Raffauf 2024-08-19 21:45:13 -04:00
parent 5cae43ef51
commit d96a001956

View file

@ -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";
};