diff options
author | sefidel <contact@sefidel.net> | 2023-09-15 16:56:11 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-09-15 16:56:11 +0900 |
commit | c48fd66a196a3de99a23ca4d8949421f064d1c11 (patch) | |
tree | 603ed6990e3df76ec57946ac64d114fe3e6df38f /home/profiles/gui/config/waybar | |
parent | 42a0d81005d44af66176007d4f89b87c2c739db7 (diff) | |
download | nixrc-c48fd66a196a3de99a23ca4d8949421f064d1c11.tar.gz nixrc-c48fd66a196a3de99a23ca4d8949421f064d1c11.zip |
feat(home/gui): waybar: make battery an optional module
Diffstat (limited to 'home/profiles/gui/config/waybar')
-rw-r--r-- | home/profiles/gui/config/waybar/settings.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/home/profiles/gui/config/waybar/settings.nix b/home/profiles/gui/config/waybar/settings.nix index 83b5cf7..1901958 100644 --- a/home/profiles/gui/config/waybar/settings.nix +++ b/home/profiles/gui/config/waybar/settings.nix @@ -1,13 +1,19 @@ -{ neotheme }: +{ config, lib, neotheme }: with neotheme.colors; + +let + guiCfg = config.profiles.gui; +in { layer = "bottom"; position = "top"; height = 22; modules-left = [ "pulseaudio" "custom/separator" "cpu" "custom/separator" "memory" "custom/separator" "idle_inhibitor" ]; modules-center = [ "sway/workspaces" ]; - modules-right = [ "network" "custom/separator" "battery" "custom/separator" "clock" ]; + modules-right = [ "network" "custom/separator" ] + ++ lib.optionals (guiCfg.laptop.enable) [ "battery" "custom/separator" ] + ++ [ "clock" ]; "sway/workspaces" = { all-outputs = true; |