diff --git a/users/youwen/linux/waybar/desktop/default.nix b/users/youwen/linux/waybar/desktop/default.nix index 0b4172b..c1d1573 100644 --- a/users/youwen/linux/waybar/desktop/default.nix +++ b/users/youwen/linux/waybar/desktop/default.nix @@ -31,6 +31,7 @@ "idle_inhibitor" "backlight" "wireplumber" + "network" "battery" "disk" "memory" @@ -47,6 +48,20 @@ }; }; + network = { + format = "{ifname}"; + format-wifi = "{icon}{essid}"; + format-ethernet = " {essid}"; + format-disconnected = "󰤯 Disconnected"; + format-icons = [ + "󰤟 " + "󰤢 " + "󰤨 " + ]; + tooltip-format = " {bandwidthUpBits} |  {bandwidthDownBits}"; + tooltip-format-wifi = " {bandwidthUpBits} |  {bandwidthDownBits} | 󱄙 {signalStrength}"; + }; + backlight = { interval = 2; format = "󰖨 {percent}%"; diff --git a/users/youwen/linux/waybar/desktop/style.css b/users/youwen/linux/waybar/desktop/style.css index a1bf311..0307cdf 100644 --- a/users/youwen/linux/waybar/desktop/style.css +++ b/users/youwen/linux/waybar/desktop/style.css @@ -65,3 +65,7 @@ window#waybar { #temperature { color: lightslategray; } + +#network { + color: lightsteelblue; +}