aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/status-bar/polybar/bar/main.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/desktop/status-bar/polybar/bar/main.nix')
-rw-r--r--modules/desktop/status-bar/polybar/bar/main.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/modules/desktop/status-bar/polybar/bar/main.nix b/modules/desktop/status-bar/polybar/bar/main.nix
new file mode 100644
index 0000000..34858d8
--- /dev/null
+++ b/modules/desktop/status-bar/polybar/bar/main.nix
@@ -0,0 +1,38 @@
+{ config }:
+
+with config.scheme.withHashtag;
+{
+ width = "\${env:POLYBAR_WIDTH}";
+ fixed-center = false;
+ height = 35;
+
+ border-top-size = 1;
+ border-bottom-size = 1;
+ border-left-size = 1;
+ border-right-size = 1;
+ border-color = base02;
+
+ background = base00;
+ foreground = base05;
+
+ line-size = 3;
+ line-color = base08;
+
+ padding-left = 1;
+ padding-right = 1;
+
+ module-margin-left = 2;
+ module-margin-right = 2;
+
+ offset-x = "\${env:POLYBAR_OFFSET}";
+ offset-y = "\${env:POLYBAR_OFFSET}";
+
+ font-0 = "FiraCode Nerd Font:pixelsize=16;3";
+
+ modules-left =
+ if config.desktop.window-manager.bspwm.enable then
+ "bspwm"
+ else null;
+ modules-center = "xwindow";
+ modules-right = "memory cpu battery time date kernel-version";
+}