diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2025-07-13 03:56:55 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2025-07-13 03:56:55 +0530 |
| commit | 3b09a24e0a5733f4fb527120a9c710f511862023 (patch) | |
| tree | 1362d1608e5b5ff01dbc7f71dea04cb6b91c9aa8 /modules/graphical/polybar/module | |
| parent | 085ff668ab45ac8d57c093e502b1175a86f2c14e (diff) | |
| download | home-manager-config-3b09a24e0a5733f4fb527120a9c710f511862023.tar.gz home-manager-config-3b09a24e0a5733f4fb527120a9c710f511862023.zip | |
Removed unecessary junk.
Diffstat (limited to 'modules/graphical/polybar/module')
| -rw-r--r-- | modules/graphical/polybar/module/battery.nix | 36 | ||||
| -rw-r--r-- | modules/graphical/polybar/module/bspwm.nix | 21 | ||||
| -rw-r--r-- | modules/graphical/polybar/module/cpu.nix | 9 | ||||
| -rw-r--r-- | modules/graphical/polybar/module/date.nix | 10 | ||||
| -rw-r--r-- | modules/graphical/polybar/module/default.nix | 13 | ||||
| -rw-r--r-- | modules/graphical/polybar/module/kernel-version.nix | 10 | ||||
| -rw-r--r-- | modules/graphical/polybar/module/memory.nix | 9 | ||||
| -rw-r--r-- | modules/graphical/polybar/module/separator.nix | 7 | ||||
| -rw-r--r-- | modules/graphical/polybar/module/time.nix | 10 | ||||
| -rw-r--r-- | modules/graphical/polybar/module/xwindow.nix | 7 |
10 files changed, 132 insertions, 0 deletions
diff --git a/modules/graphical/polybar/module/battery.nix b/modules/graphical/polybar/module/battery.nix new file mode 100644 index 0000000..6e25e99 --- /dev/null +++ b/modules/graphical/polybar/module/battery.nix @@ -0,0 +1,36 @@ +{ config }: + +with config.scheme.withHashtag; +{ + type = "internal/battery"; + battery = "BAT0"; + adapter = "ADP1"; + + format-charging = "%{T2}%{F${base03}}<animation-charging>%{F-}%{T-} <label-charging>"; + format-discharging = "%{T2}%{F${base03}}<ramp-capacity>%{F-}%{T-} <label-discharging>"; + format-full-prefix = " "; + + ramp-capacity-0 = ""; + ramp-capacity-1 = ""; + ramp-capacity-2 = ""; + ramp-capacity-3 = ""; + ramp-capacity-4 = ""; + ramp-capacity-5 = ""; + ramp-capacity-6 = ""; + ramp-capacity-7 = ""; + ramp-capacity-8 = ""; + ramp-capacity-9 = ""; + + animation-charging-0 = ""; + animation-charging-1 = ""; + animation-charging-2 = ""; + animation-charging-3 = ""; + animation-charging-4 = ""; + animation-charging-5 = ""; + animation-charging-6 = ""; + animation-charging-7 = ""; + animation-charging-8 = ""; + animation-charging-9 = ""; + + animation-charging-framerate = 750; +} diff --git a/modules/graphical/polybar/module/bspwm.nix b/modules/graphical/polybar/module/bspwm.nix new file mode 100644 index 0000000..ed82946 --- /dev/null +++ b/modules/graphical/polybar/module/bspwm.nix @@ -0,0 +1,21 @@ +{ config }: + +with config.scheme.withHashtag; +{ + type = "internal/bspwm"; + + label-focused = "%index%"; + label-focused-underline = "${base0D}"; + label-focused-padding = 2; + + label-occupied = "%index%"; + label-occupied-padding = 2; + + label-urgent = "%index%"; + label-urgent-underline = "${base08}"; + label-urgent-padding = 2; + + label-empty = "%index%"; + label-empty-foreground = "${base03}"; + label-empty-padding = 2; +} diff --git a/modules/graphical/polybar/module/cpu.nix b/modules/graphical/polybar/module/cpu.nix new file mode 100644 index 0000000..d37b5cc --- /dev/null +++ b/modules/graphical/polybar/module/cpu.nix @@ -0,0 +1,9 @@ +{ config }: + +with config.scheme.withHashtag; +{ + type = "internal/cpu"; + interval = 2; + format-prefix = "%{T2}%{F${base03}} %{F-}%{T-}"; + label = "%percentage%%"; +} diff --git a/modules/graphical/polybar/module/date.nix b/modules/graphical/polybar/module/date.nix new file mode 100644 index 0000000..56e2fa6 --- /dev/null +++ b/modules/graphical/polybar/module/date.nix @@ -0,0 +1,10 @@ +{ config }: + +with config.scheme.withHashtag; +{ + type = "internal/date"; + interval = 60; + date = "%d/%m/%Y"; + label = "%date%"; + format-prefix = "%{T2}%{F${base03}} %{F-}%{T-}"; +} diff --git a/modules/graphical/polybar/module/default.nix b/modules/graphical/polybar/module/default.nix new file mode 100644 index 0000000..ffd161a --- /dev/null +++ b/modules/graphical/polybar/module/default.nix @@ -0,0 +1,13 @@ +{ config, lib }: + +{ + "module/separator" = import ./separator.nix { inherit config; }; + "module/xwindow" = import ./xwindow.nix { inherit config; }; + "module/bspwm" = import ./bspwm.nix { inherit config; }; + "module/cpu" = import ./cpu.nix { inherit config; }; + "module/memory" = import ./memory.nix { inherit config; }; + "module/date" = import ./date.nix { inherit config; }; + "module/time" = import ./time.nix { inherit config; }; + "module/battery" = import ./battery.nix { inherit config; }; + "module/kernel-version" = import ./kernel-version.nix { inherit config; }; +} diff --git a/modules/graphical/polybar/module/kernel-version.nix b/modules/graphical/polybar/module/kernel-version.nix new file mode 100644 index 0000000..8f94e37 --- /dev/null +++ b/modules/graphical/polybar/module/kernel-version.nix @@ -0,0 +1,10 @@ +{ config }: + +with config.scheme.withHashtag; +{ + type = "custom/script"; + exec = "uname -r"; + interval = 1024; + format-prefix = "%{T2}%{F${base03}} %{F-}%{T-}"; + label = "%output%"; +} diff --git a/modules/graphical/polybar/module/memory.nix b/modules/graphical/polybar/module/memory.nix new file mode 100644 index 0000000..cf70874 --- /dev/null +++ b/modules/graphical/polybar/module/memory.nix @@ -0,0 +1,9 @@ +{ config }: + +with config.scheme.withHashtag; +{ + type = "internal/memory"; + interval = 2; + format-prefix = "%{T2}%{F${base03}} %{F-}%{T-}"; + label = "%gb_used%"; +} diff --git a/modules/graphical/polybar/module/separator.nix b/modules/graphical/polybar/module/separator.nix new file mode 100644 index 0000000..3cd1430 --- /dev/null +++ b/modules/graphical/polybar/module/separator.nix @@ -0,0 +1,7 @@ +{ config }: + +with config.scheme.withHashtag; +{ + type = "custom/text"; + label = " "; +} diff --git a/modules/graphical/polybar/module/time.nix b/modules/graphical/polybar/module/time.nix new file mode 100644 index 0000000..b8ea545 --- /dev/null +++ b/modules/graphical/polybar/module/time.nix @@ -0,0 +1,10 @@ +{ config }: + +with config.scheme.withHashtag; +{ + type = "internal/date"; + interval = 30; + time = "%H:%M"; + label = "%time%"; + format-prefix = "%{T2}%{F${base03}} %{F-}%{T-}"; +} diff --git a/modules/graphical/polybar/module/xwindow.nix b/modules/graphical/polybar/module/xwindow.nix new file mode 100644 index 0000000..833899e --- /dev/null +++ b/modules/graphical/polybar/module/xwindow.nix @@ -0,0 +1,7 @@ +{ config }: + +with config.scheme.withHashtag; +{ + type = "internal/xwindow"; + label = "%title:0:30:...%"; +} |
