aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/polybar/module
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@proton.me>2026-03-12 18:48:40 +0530
committerArpit Chakladar <arpitchakladar@proton.me>2026-03-12 18:48:40 +0530
commit51d537e03ad877566f00af3c6a1c00340512ac65 (patch)
tree7f8e1c6fccc68ba2ad7c3a2a02fb6efbc36d37d3 /modules/desktop/polybar/module
parentd6ccf7e455bd6947664d4a44dfe578813fa2b4eb (diff)
downloadhome-manager-config-51d537e03ad877566f00af3c6a1c00340512ac65.tar.gz
home-manager-config-51d537e03ad877566f00af3c6a1c00340512ac65.zip
Using spaces instead of tabs
Diffstat (limited to 'modules/desktop/polybar/module')
-rw-r--r--modules/desktop/polybar/module/battery.nix70
-rw-r--r--modules/desktop/polybar/module/bspwm.nix32
-rw-r--r--modules/desktop/polybar/module/cpu.nix8
-rw-r--r--modules/desktop/polybar/module/date.nix10
-rw-r--r--modules/desktop/polybar/module/default.nix26
-rw-r--r--modules/desktop/polybar/module/ethernet-separator.nix18
-rw-r--r--modules/desktop/polybar/module/ethernet.nix18
-rw-r--r--modules/desktop/polybar/module/memory.nix8
-rw-r--r--modules/desktop/polybar/module/separator.nix4
-rw-r--r--modules/desktop/polybar/module/time.nix10
-rw-r--r--modules/desktop/polybar/module/volume.nix16
-rw-r--r--modules/desktop/polybar/module/wifi-separator.nix18
-rw-r--r--modules/desktop/polybar/module/wifi.nix32
-rw-r--r--modules/desktop/polybar/module/xwindow.nix4
14 files changed, 137 insertions, 137 deletions
diff --git a/modules/desktop/polybar/module/battery.nix b/modules/desktop/polybar/module/battery.nix
index cdf3b86..dc9e6f4 100644
--- a/modules/desktop/polybar/module/battery.nix
+++ b/modules/desktop/polybar/module/battery.nix
@@ -2,39 +2,39 @@
with config.scheme.withHashtag;
{
- type = "internal/battery";
- battery = "BAT1";
- adapter = "ADP1";
-
- low-at = 0;
- 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 = "󰁹 ";
-
- label-charging = "%percentage:3%%";
- label-discharging = "%percentage:3%%";
-
- 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;
+ type = "internal/battery";
+ battery = "BAT1";
+ adapter = "ADP1";
+
+ low-at = 0;
+ 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 = "󰁹 ";
+
+ label-charging = "%percentage:3%%";
+ label-discharging = "%percentage:3%%";
+
+ 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/desktop/polybar/module/bspwm.nix b/modules/desktop/polybar/module/bspwm.nix
index 3c8f64a..a760acf 100644
--- a/modules/desktop/polybar/module/bspwm.nix
+++ b/modules/desktop/polybar/module/bspwm.nix
@@ -2,20 +2,20 @@
with config.scheme.withHashtag;
{
- type = "internal/bspwm";
-
- label-focused = "%index%";
- label-focused-underline = "${base0D}";
- label-focused-padding = 1;
-
- label-occupied = "%index%";
- label-occupied-padding = 1;
-
- label-urgent = "%index%";
- label-urgent-underline = "${base08}";
- label-urgent-padding = 1;
-
- label-empty = "%index%";
- label-empty-foreground = "${base03}";
- label-empty-padding = 1;
+ type = "internal/bspwm";
+
+ label-focused = "%index%";
+ label-focused-underline = "${base0D}";
+ label-focused-padding = 1;
+
+ label-occupied = "%index%";
+ label-occupied-padding = 1;
+
+ label-urgent = "%index%";
+ label-urgent-underline = "${base08}";
+ label-urgent-padding = 1;
+
+ label-empty = "%index%";
+ label-empty-foreground = "${base03}";
+ label-empty-padding = 1;
}
diff --git a/modules/desktop/polybar/module/cpu.nix b/modules/desktop/polybar/module/cpu.nix
index 754e6eb..64d5b47 100644
--- a/modules/desktop/polybar/module/cpu.nix
+++ b/modules/desktop/polybar/module/cpu.nix
@@ -2,8 +2,8 @@
with config.scheme.withHashtag;
{
- type = "internal/cpu";
- interval = 2;
- format-prefix = "%{T2}%{F${base03}} %{F-}%{T-}";
- label = "%percentage:3%%";
+ type = "internal/cpu";
+ interval = 2;
+ format-prefix = "%{T2}%{F${base03}} %{F-}%{T-}";
+ label = "%percentage:3%%";
}
diff --git a/modules/desktop/polybar/module/date.nix b/modules/desktop/polybar/module/date.nix
index 9c56121..0e432e9 100644
--- a/modules/desktop/polybar/module/date.nix
+++ b/modules/desktop/polybar/module/date.nix
@@ -2,9 +2,9 @@
with config.scheme.withHashtag;
{
- type = "internal/date";
- interval = 60;
- date = "%d/%m/%Y";
- label = "%date%";
- format-prefix = "%{T2}%{F${base03}} %{F-}%{T-}";
+ type = "internal/date";
+ interval = 60;
+ date = "%d/%m/%Y";
+ label = "%date%";
+ format-prefix = "%{T2}%{F${base03}} %{F-}%{T-}";
}
diff --git a/modules/desktop/polybar/module/default.nix b/modules/desktop/polybar/module/default.nix
index 1a243b0..57854ca 100644
--- a/modules/desktop/polybar/module/default.nix
+++ b/modules/desktop/polybar/module/default.nix
@@ -1,17 +1,17 @@
{ config, lib }:
{
- "module/battery" = import ./battery.nix { inherit config; };
- "module/bspwm" = import ./bspwm.nix { inherit config; };
- "module/cpu" = import ./cpu.nix { inherit config; };
- "module/date" = import ./date.nix { inherit config; };
- "module/ethernet-separator" = import ./ethernet-separator.nix { inherit config; };
- "module/ethernet" = import ./ethernet.nix { inherit config; };
- "module/memory" = import ./memory.nix { inherit config; };
- "module/separator" = import ./separator.nix { inherit config; };
- "module/time" = import ./time.nix { inherit config; };
- "module/volume" = import ./volume.nix { inherit config; };
- "module/wifi-separator" = import ./wifi-separator.nix { inherit config; };
- "module/wifi" = import ./wifi.nix { inherit config; };
- "module/xwindow" = import ./xwindow.nix { inherit config; };
+ "module/battery" = import ./battery.nix { inherit config; };
+ "module/bspwm" = import ./bspwm.nix { inherit config; };
+ "module/cpu" = import ./cpu.nix { inherit config; };
+ "module/date" = import ./date.nix { inherit config; };
+ "module/ethernet-separator" = import ./ethernet-separator.nix { inherit config; };
+ "module/ethernet" = import ./ethernet.nix { inherit config; };
+ "module/memory" = import ./memory.nix { inherit config; };
+ "module/separator" = import ./separator.nix { inherit config; };
+ "module/time" = import ./time.nix { inherit config; };
+ "module/volume" = import ./volume.nix { inherit config; };
+ "module/wifi-separator" = import ./wifi-separator.nix { inherit config; };
+ "module/wifi" = import ./wifi.nix { inherit config; };
+ "module/xwindow" = import ./xwindow.nix { inherit config; };
}
diff --git a/modules/desktop/polybar/module/ethernet-separator.nix b/modules/desktop/polybar/module/ethernet-separator.nix
index c2fefaa..2c2a738 100644
--- a/modules/desktop/polybar/module/ethernet-separator.nix
+++ b/modules/desktop/polybar/module/ethernet-separator.nix
@@ -2,13 +2,13 @@
with config.scheme.withHashtag;
{
- type = "internal/network";
- interface = "enp4s0";
- interface-type = "wired";
-
- format-connected = " %{F${base03}}%{T3}│%{T-}%{F-} ";
- format-disconnected = "";
-
- label-connected = "";
- label-disconnected = "";
+ type = "internal/network";
+ interface = "enp4s0";
+ interface-type = "wired";
+
+ format-connected = " %{F${base03}}%{T3}│%{T-}%{F-} ";
+ format-disconnected = "";
+
+ label-connected = "";
+ label-disconnected = "";
}
diff --git a/modules/desktop/polybar/module/ethernet.nix b/modules/desktop/polybar/module/ethernet.nix
index 3e2b48d..28c7a1b 100644
--- a/modules/desktop/polybar/module/ethernet.nix
+++ b/modules/desktop/polybar/module/ethernet.nix
@@ -2,13 +2,13 @@
with config.scheme.withHashtag;
{
- type = "internal/network";
- interface = "enp4s0";
- interface-type = "wired";
-
- format-connected = "%{T2}%{F${base03}}%{F-}%{T-} <label-connected>";
- format-disconnected = "";
-
- label-connected = "%netspeed:8%";
- label-disconnected = "";
+ type = "internal/network";
+ interface = "enp4s0";
+ interface-type = "wired";
+
+ format-connected = "%{T2}%{F${base03}}%{F-}%{T-} <label-connected>";
+ format-disconnected = "";
+
+ label-connected = "%netspeed:8%";
+ label-disconnected = "";
}
diff --git a/modules/desktop/polybar/module/memory.nix b/modules/desktop/polybar/module/memory.nix
index d6ab597..7f8de0a 100644
--- a/modules/desktop/polybar/module/memory.nix
+++ b/modules/desktop/polybar/module/memory.nix
@@ -2,8 +2,8 @@
with config.scheme.withHashtag;
{
- type = "internal/memory";
- interval = 2;
- format-prefix = "%{T2}%{F${base03}} %{F-}%{T-} ";
- label = "%gb_used:9%";
+ type = "internal/memory";
+ interval = 2;
+ format-prefix = "%{T2}%{F${base03}} %{F-}%{T-} ";
+ label = "%gb_used:9%";
}
diff --git a/modules/desktop/polybar/module/separator.nix b/modules/desktop/polybar/module/separator.nix
index 1434037..0a75a30 100644
--- a/modules/desktop/polybar/module/separator.nix
+++ b/modules/desktop/polybar/module/separator.nix
@@ -2,6 +2,6 @@
with config.scheme.withHashtag;
{
- type = "custom/text";
- label = " %{F${base03}}%{T3}│%{T-}%{F-} ";
+ type = "custom/text";
+ label = " %{F${base03}}%{T3}│%{T-}%{F-} ";
}
diff --git a/modules/desktop/polybar/module/time.nix b/modules/desktop/polybar/module/time.nix
index 2179c09..6fe921d 100644
--- a/modules/desktop/polybar/module/time.nix
+++ b/modules/desktop/polybar/module/time.nix
@@ -2,9 +2,9 @@
with config.scheme.withHashtag;
{
- type = "internal/date";
- interval = 30;
- time = "%I:%M %p";
- label = "%time%";
- format-prefix = "%{T2}%{F${base03}} %{F-}%{T-}";
+ type = "internal/date";
+ interval = 30;
+ time = "%I:%M %p";
+ label = "%time%";
+ format-prefix = "%{T2}%{F${base03}} %{F-}%{T-}";
}
diff --git a/modules/desktop/polybar/module/volume.nix b/modules/desktop/polybar/module/volume.nix
index 4dff8fb..eacd53d 100644
--- a/modules/desktop/polybar/module/volume.nix
+++ b/modules/desktop/polybar/module/volume.nix
@@ -2,12 +2,12 @@
with config.scheme.withHashtag;
{
- type = "internal/pulseaudio";
- interval = 5;
- format-volume = "%{T2}%{F${base03}}<ramp-volume>%{F-}%{T-} <label-volume>";
- label-volume = "%percentage:3%%";
- label-muted = "%{T2}%{F${base03}} %{F-}%{T-} ";
- ramp-volume-0 = " ";
- ramp-volume-1 = " ";
- ramp-volume-2 = " ";
+ type = "internal/pulseaudio";
+ interval = 5;
+ format-volume = "%{T2}%{F${base03}}<ramp-volume>%{F-}%{T-} <label-volume>";
+ label-volume = "%percentage:3%%";
+ label-muted = "%{T2}%{F${base03}} %{F-}%{T-} ";
+ ramp-volume-0 = " ";
+ ramp-volume-1 = " ";
+ ramp-volume-2 = " ";
}
diff --git a/modules/desktop/polybar/module/wifi-separator.nix b/modules/desktop/polybar/module/wifi-separator.nix
index 6b8da50..2527b68 100644
--- a/modules/desktop/polybar/module/wifi-separator.nix
+++ b/modules/desktop/polybar/module/wifi-separator.nix
@@ -2,13 +2,13 @@
with config.scheme.withHashtag;
{
- type = "internal/network";
- interface = "wlan0";
- interface-type = "wireless";
-
- format-connected = " %{F${base03}}%{T3}│%{T-}%{F-} ";
- format-disconnected = "";
-
- label-connected = "";
- label-disconnected = "";
+ type = "internal/network";
+ interface = "wlan0";
+ interface-type = "wireless";
+
+ format-connected = " %{F${base03}}%{T3}│%{T-}%{F-} ";
+ format-disconnected = "";
+
+ label-connected = "";
+ label-disconnected = "";
}
diff --git a/modules/desktop/polybar/module/wifi.nix b/modules/desktop/polybar/module/wifi.nix
index 9f25fa2..5a4d17f 100644
--- a/modules/desktop/polybar/module/wifi.nix
+++ b/modules/desktop/polybar/module/wifi.nix
@@ -2,20 +2,20 @@
with config.scheme.withHashtag;
{
- type = "internal/network";
- interface = "wlan0";
- interface-type = "wireless";
-
- format-connected = "%{T2}%{F${base03}}<ramp-signal>%{F-}%{T-} <label-connected>";
- format-disconnected = "";
-
- label-connected = "%netspeed:8%";
- label-disconnected = "";
-
- ramp-signal-0 = "󰢼";
- ramp-signal-1 = "󰢼";
- ramp-signal-2 = "󰢽";
- ramp-signal-3 = "󰢽";
- ramp-signal-4 = "󰢾";
- ramp-signal-5 = "󰢾";
+ type = "internal/network";
+ interface = "wlan0";
+ interface-type = "wireless";
+
+ format-connected = "%{T2}%{F${base03}}<ramp-signal>%{F-}%{T-} <label-connected>";
+ format-disconnected = "";
+
+ label-connected = "%netspeed:8%";
+ label-disconnected = "";
+
+ ramp-signal-0 = "󰢼";
+ ramp-signal-1 = "󰢼";
+ ramp-signal-2 = "󰢽";
+ ramp-signal-3 = "󰢽";
+ ramp-signal-4 = "󰢾";
+ ramp-signal-5 = "󰢾";
}
diff --git a/modules/desktop/polybar/module/xwindow.nix b/modules/desktop/polybar/module/xwindow.nix
index 386efe2..16574f5 100644
--- a/modules/desktop/polybar/module/xwindow.nix
+++ b/modules/desktop/polybar/module/xwindow.nix
@@ -1,6 +1,6 @@
{ config }:
{
- type = "internal/xwindow";
- label = "%title:0:20:...%";
+ type = "internal/xwindow";
+ label = "%title:0:20:...%";
}