aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/status-bar/polybar/bar/main.nix
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-11-08 21:32:55 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-11-08 21:32:55 +0530
commit159fbf8c5573d85a731d2582b52b3e8cb223618c (patch)
treede3d89b3b026121e8d3f597eddd4302e001953ab /modules/desktop/status-bar/polybar/bar/main.nix
parent4b322dc7eb9339ec8297f05bd305f699755598e1 (diff)
downloadhome-manager-config-159fbf8c5573d85a731d2582b52b3e8cb223618c.tar.gz
home-manager-config-159fbf8c5573d85a731d2582b52b3e8cb223618c.zip
Added config for i3 window manager.
i3 configuration is not finished.
Diffstat (limited to 'modules/desktop/status-bar/polybar/bar/main.nix')
-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";
}