diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-09-17 10:12:18 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-09-17 10:12:18 +0530 |
| commit | cbd5b66b89fba2ad23a9da7372cf916305efad1f (patch) | |
| tree | 0a5580244e3fe87b05c581681e558925d0635ad7 /polybar/modules | |
| download | home-manager-config-cbd5b66b89fba2ad23a9da7372cf916305efad1f.tar.gz home-manager-config-cbd5b66b89fba2ad23a9da7372cf916305efad1f.zip | |
Initial commit.
Diffstat (limited to 'polybar/modules')
| -rw-r--r-- | polybar/modules/battery.nix | 23 | ||||
| -rw-r--r-- | polybar/modules/bspwm.nix | 22 | ||||
| -rw-r--r-- | polybar/modules/cpu.nix | 9 | ||||
| -rw-r--r-- | polybar/modules/date.nix | 10 | ||||
| -rw-r--r-- | polybar/modules/kernel-version.nix | 10 | ||||
| -rw-r--r-- | polybar/modules/memory.nix | 9 | ||||
| -rw-r--r-- | polybar/modules/time.nix | 10 | ||||
| -rw-r--r-- | polybar/modules/xwindow.nix | 7 |
8 files changed, 100 insertions, 0 deletions
diff --git a/polybar/modules/battery.nix b/polybar/modules/battery.nix new file mode 100644 index 0000000..1bb1264 --- /dev/null +++ b/polybar/modules/battery.nix @@ -0,0 +1,23 @@ +config: + +with config.lib.stylix.colors.withHashtag; +{ + type = "internal/battery"; + battery = "BAT0"; + adapter = "ADP1"; + full-at = "98"; + + format-charging = "<animation-charging> <label-charging>"; + format-discharging = "<ramp-capacity> <label-discharging>"; + format-full-prefix = "%{F${base0B}}%{F-}"; + label-full = "%percentage_used%%"; + + ramp-capacity-0 = "%{F${base0C}}%{F-}"; + ramp-capacity-1 = "%{F${base0C}}%{F-}"; + ramp-capacity-2 = "%{F${base0C}}%{F-}"; + + animation-charging-0 = "%{F${base0C}}%{F-}"; + animation-charging-1 = "%{F${base0C}}%{F-}"; + animation-charging-2 = "%{F${base0C}}%{F-}"; + animation-charging-framerate = 750; +} diff --git a/polybar/modules/bspwm.nix b/polybar/modules/bspwm.nix new file mode 100644 index 0000000..2bb32c5 --- /dev/null +++ b/polybar/modules/bspwm.nix @@ -0,0 +1,22 @@ +config: + +with config.lib.stylix.colors.withHashtag; +{ + type = "internal/bspwm"; + + label-focused = "%index%"; + label-focused-background = "${base01}"; + label-focused-underline = "${base0D}"; + label-focused-padding = 2; + + label-occupied = "%index%"; + label-occupied-padding = 2; + + label-urgent = "%index%!"; + label-urgent-background = "${base08}"; + label-urgent-padding = 2; + + label-empty = "%index%"; + label-empty-foreground = "${base03}"; + label-empty-padding = 2; +} diff --git a/polybar/modules/cpu.nix b/polybar/modules/cpu.nix new file mode 100644 index 0000000..d130d07 --- /dev/null +++ b/polybar/modules/cpu.nix @@ -0,0 +1,9 @@ +config: + +with config.lib.stylix.colors.withHashtag; +{ + type = "internal/cpu"; + interval = 2; + format-prefix = "%{F${base09}} %{F-}"; + label = "%percentage%%"; +} diff --git a/polybar/modules/date.nix b/polybar/modules/date.nix new file mode 100644 index 0000000..4cba926 --- /dev/null +++ b/polybar/modules/date.nix @@ -0,0 +1,10 @@ +config: + +with config.lib.stylix.colors.withHashtag; +{ + type = "internal/date"; + interval = 60; + date = "%d/%m/%Y"; + label = "%date%"; + format-prefix = "%{F${base0B}} %{F-}"; +} diff --git a/polybar/modules/kernel-version.nix b/polybar/modules/kernel-version.nix new file mode 100644 index 0000000..d858617 --- /dev/null +++ b/polybar/modules/kernel-version.nix @@ -0,0 +1,10 @@ +config: + +with config.lib.stylix.colors.withHashtag; +{ + type = "custom/script"; + exec = "uname -r"; + interval = 1024; + format-prefix = "%{F${base03}} %{F-}"; + label = "%output%"; +} diff --git a/polybar/modules/memory.nix b/polybar/modules/memory.nix new file mode 100644 index 0000000..230286f --- /dev/null +++ b/polybar/modules/memory.nix @@ -0,0 +1,9 @@ +config: + +with config.lib.stylix.colors.withHashtag; +{ + type = "internal/memory"; + interval = 2; + format-prefix = "%{F${base0A}} %{F-}"; + label = "%percentage_used%%"; +} diff --git a/polybar/modules/time.nix b/polybar/modules/time.nix new file mode 100644 index 0000000..fde01de --- /dev/null +++ b/polybar/modules/time.nix @@ -0,0 +1,10 @@ +config: + +with config.lib.stylix.colors.withHashtag; +{ + type = "internal/date"; + interval = 30; + time = "%H:%M"; + label = "%time%"; + format-prefix = "%{F${base0C}} %{F-}"; +} diff --git a/polybar/modules/xwindow.nix b/polybar/modules/xwindow.nix new file mode 100644 index 0000000..7a242d0 --- /dev/null +++ b/polybar/modules/xwindow.nix @@ -0,0 +1,7 @@ +config: + +with config.lib.stylix.colors.withHashtag; +{ + type = "internal/xwindow"; + label = "%title:0:30:...%"; +} |
