aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/polybar/module/wifi.nix
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-12-07 20:37:13 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-12-07 20:37:13 +0530
commite0dfcfb753be2ae086f497e06affd40beddceb20 (patch)
treeddf17690a892763ec398c9f7beef9c223204bcd3 /modules/desktop/polybar/module/wifi.nix
parentb7d4e1711262591475016ae57f1ead6cf54b07f6 (diff)
downloadhome-manager-config-e0dfcfb753be2ae086f497e06affd40beddceb20.tar.gz
home-manager-config-e0dfcfb753be2ae086f497e06affd40beddceb20.zip
Added wifi and ether sections to the polybar config + some other slight modification to make sure the components don't resize
Diffstat (limited to 'modules/desktop/polybar/module/wifi.nix')
-rw-r--r--modules/desktop/polybar/module/wifi.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/desktop/polybar/module/wifi.nix b/modules/desktop/polybar/module/wifi.nix
new file mode 100644
index 0000000..f244054
--- /dev/null
+++ b/modules/desktop/polybar/module/wifi.nix
@@ -0,0 +1,21 @@
+{ config }:
+
+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 = "󰢾";
+}