diff --git a/home/modules/window_manager/polybar.nix b/home/modules/window_manager/polybar.nix index eb5e804..c73ef82 100644 --- a/home/modules/window_manager/polybar.nix +++ b/home/modules/window_manager/polybar.nix @@ -63,7 +63,7 @@ in ]; modules = { left = "xmonad"; - center = "date wifi"; + center = "date wifi external_ip"; right = "exchangerate volume battery lang time"; }; offset-x = "6px"; @@ -156,10 +156,20 @@ in type = "wireless"; text = cfg.wifiDevice; }; - label.connected = "%essid% %signal%"; + label.connected = "%essid% %local_ip%"; format.connected = { prefix = "| %{T4}%{T-} "; - suffix = "%"; + suffix = " |"; + }; + }; + + "module/external_ip" = { + type = "custom/script"; + exec = "${pkgs.myip}/bin/myip"; + interval = 60; + format = { + inherit padding; + foreground = themeCfg.highlights.success; }; };