user/polybar: show local and external ip in polybar

Closes #14
This commit is contained in:
Dmitriy Pleshevskiy 2023-03-31 18:08:58 +03:00
parent e3341e1233
commit 4ff17ab7fc
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985

View file

@ -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;
};
};