From 86aaaabfd153a1710b6773f17925d2e5191bf522 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Wed, 25 Sep 2024 23:51:51 +0530 Subject: Changed polybar bspwm workspace tab config. --- modules/desktop/status-bar/polybar/bar/main.nix | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 modules/desktop/status-bar/polybar/bar/main.nix (limited to 'modules/desktop/status-bar/polybar/bar/main.nix') 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"; +} -- cgit v1.2.3