aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/polybar/module/wifi.nix
blob: 6ee848f7162ff7e3f6749d8381c43c1ceb1eaee4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ config }:

# WiFi - Wireless network module (signal strength, speed)
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 = "󰢾";
}