mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 03:51:53 -05:00
waybar: only enable ppd and battery module on laptopMode
This commit is contained in:
parent
5cae43ef51
commit
d96a001956
|
@ -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";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue