From 77eeca350913b4df68e1f46802222a70c16b425e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=98=A4=EB=B3=91=EC=A4=80?= Date: Tue, 16 Dec 2025 16:05:44 +0900 Subject: [PATCH 1/4] fix: missing space between label and ip on network-public-ip plugin --- scripts/network-public-ip.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/network-public-ip.sh b/scripts/network-public-ip.sh index 7a1ccacd..3ec8ed70 100755 --- a/scripts/network-public-ip.sh +++ b/scripts/network-public-ip.sh @@ -19,7 +19,8 @@ main() { IP_SERVER="ifconfig.me" ip=$(curl -s "$IP_SERVER") - echo "$(get_tmux_option "@dracula-network-public-ip-label" "")$ip" > "${DATAFILE}" + network_public_ip_label=$(get_tmux_option "@dracula-network-public-ip-label" "IP") + echo "$network_public_ip_label $ip" > "${DATAFILE}" printf '%s' "$_now" > "${LAST_EXEC_FILE}" fi From 412cd20b4217518148a2c3c477d3f3f1b94d9430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=98=A4=EB=B3=91=EC=A4=80?= Date: Wed, 17 Dec 2025 11:07:49 +0900 Subject: [PATCH 2/4] add: network-public-ip documentation --- docs/CONFIG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/CONFIG.md b/docs/CONFIG.md index eb7c9475..62960018 100644 --- a/docs/CONFIG.md +++ b/docs/CONFIG.md @@ -25,6 +25,7 @@ - [mac-player](#mac-player---up) - [mpc](#mpc---up) - [network](#network---up) + - [network-public-ip](#network-public-ip---up) - [network-bandwidth](#network-bandwidth---up) - [network-ping](#network-ping---up) - [network-vpn](#network-vpn---up) @@ -645,6 +646,16 @@ Known issues: - If for some reason `iw` is only in the path for root and not the normal user, wifi connections will be considered ethernet connections. +### network-public-ip - [up](#table-of-contents) + +This widget displays the public IP address you're using. + +Possible nerdfont settings for public IP info: + +```bash +set -g @dracula-network-public-ip-label "󰖟 " +``` + ### network-bandwidth - [up](#table-of-contents) This widget gives the currently used up and download speeds per second for one interface. From 2c9a22145f310f20417ae41675320ddd9cb47acf Mon Sep 17 00:00:00 2001 From: LUFT-AQUILA Date: Mon, 22 Dec 2025 15:21:09 +0900 Subject: [PATCH 3/4] add: ip source Co-authored-by: Hugo/ Theo Meinhof --- docs/CONFIG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/CONFIG.md b/docs/CONFIG.md index 62960018..41cb8190 100644 --- a/docs/CONFIG.md +++ b/docs/CONFIG.md @@ -648,7 +648,7 @@ Known issues: ### network-public-ip - [up](#table-of-contents) -This widget displays the public IP address you're using. +This widget displays the public IP address you're using, by querying the public service `ifconfig.me`. Possible nerdfont settings for public IP info: From 330d608fe46269540bc0d5571f35f0e244a6fa99 Mon Sep 17 00:00:00 2001 From: Hugo/ Theo Meinhof Date: Fri, 23 Jan 2026 17:38:33 +0100 Subject: [PATCH 4/4] Apply suggestion from @luftaquila Co-authored-by: LUFT-AQUILA --- scripts/network-public-ip.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/network-public-ip.sh b/scripts/network-public-ip.sh index 3ec8ed70..5853410d 100755 --- a/scripts/network-public-ip.sh +++ b/scripts/network-public-ip.sh @@ -20,7 +20,7 @@ main() { ip=$(curl -s "$IP_SERVER") network_public_ip_label=$(get_tmux_option "@dracula-network-public-ip-label" "IP") - echo "$network_public_ip_label $ip" > "${DATAFILE}" + echo "$network_public_ip_label$ip" > "${DATAFILE}" printf '%s' "$_now" > "${LAST_EXEC_FILE}" fi