aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/status-bar/polybar/bar
diff options
context:
space:
mode:
Diffstat (limited to 'modules/desktop/status-bar/polybar/bar')
-rw-r--r--modules/desktop/status-bar/polybar/bar/main.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/desktop/status-bar/polybar/bar/main.nix b/modules/desktop/status-bar/polybar/bar/main.nix
index 25cce91..a389b8c 100644
--- a/modules/desktop/status-bar/polybar/bar/main.nix
+++ b/modules/desktop/status-bar/polybar/bar/main.nix
@@ -36,9 +36,11 @@ in {
font-2 = "${config.fonts.normal}:style=Light:pixelsize=${largerFontSize};2";
modules-left =
- lib.mkIf
- config.desktop.window-manager.bspwm.enable
- "bspwm separator";
+ if config.desktop.window-manager.bspwm.enable then
+ "bspwm separator"
+ else if config.desktop.window-manager.i3.enable then
+ "i3 separator"
+ else "";
modules-center = "xwindow";
modules-right = "separator memory cpu battery time date kernel-version";
}