From 3b09a24e0a5733f4fb527120a9c710f511862023 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Sun, 13 Jul 2025 03:56:55 +0530 Subject: Removed unecessary junk. --- modules/graphical/polybar/bar/default.nix | 5 ++++ modules/graphical/polybar/bar/main.nix | 42 +++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 modules/graphical/polybar/bar/default.nix create mode 100644 modules/graphical/polybar/bar/main.nix (limited to 'modules/graphical/polybar/bar') diff --git a/modules/graphical/polybar/bar/default.nix b/modules/graphical/polybar/bar/default.nix new file mode 100644 index 0000000..23a43c4 --- /dev/null +++ b/modules/graphical/polybar/bar/default.nix @@ -0,0 +1,5 @@ +{ config, lib }: + +{ + "bar/main" = import ./main.nix { inherit config lib; }; +} diff --git a/modules/graphical/polybar/bar/main.nix b/modules/graphical/polybar/bar/main.nix new file mode 100644 index 0000000..06fa63f --- /dev/null +++ b/modules/graphical/polybar/bar/main.nix @@ -0,0 +1,42 @@ +{ config, lib }: + +with config.scheme.withHashtag; +let + largerFontSize = toString (builtins.ceil (config.fonts.size * 9.0 / 8.0)); +in { + width = "100%:-20"; + fixed-center = false; + height = 35; + override-redirect = true; + + border-top-size = 1; + border-bottom-size = 1; + border-left-size = 1; + border-right-size = 1; + border-color = base03; + + background = base00; + foreground = base05; + + line-size = 3; + line-color = base08; + + padding-left = 1; + padding-right = 1; + + module-margin-left = 1; + module-margin-right = 1; + + separator = "%{F${base03}}%{T3}│%{T-}%{F-}"; + + offset-x = "10"; + offset-y = "10"; + + font-0 = "${config.fonts.normal}:pixelsize=${toString config.fonts.size};3"; + font-1 = "${config.fonts.normal}:weight=Bold:pixelsize=${largerFontSize};3"; + font-2 = "${config.fonts.normal}:style=Light:pixelsize=${largerFontSize};2"; + + modules-left = "bspwm separator"; + modules-center = "xwindow"; + modules-right = "separator memory cpu battery time date kernel-version"; +} -- cgit v1.2.3