From 3d6f13b2bc1f9b4ce2300e7d0c5772f1557bbd4d Mon Sep 17 00:00:00 2001 From: dissimulo Date: Sun, 17 May 2026 03:58:11 -0700 Subject: [PATCH] tmux-net: always prefix local IP with home symbol MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show ⌂ before the local IP whether or not a VPN is up. The VPN branch already prefixes ⌂; the non-VPN branch was emitting the bare IP. --- .local/bin/tmux-net | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.local/bin/tmux-net b/.local/bin/tmux-net index 906f88f4..c4f1d74d 100755 --- a/.local/bin/tmux-net +++ b/.local/bin/tmux-net @@ -1,8 +1,8 @@ #!/bin/bash # # Emit the tmux status-bar network segment. -# No VPN: "" -# VPN up: " (local) / (vpn)" +# No VPN: "⌂ " +# VPN up: "⌂ / ⇡ " # set -u @@ -13,5 +13,5 @@ vpn_ip=$("$HOME/.local/bin/tmux-vpn-ip" 2>/dev/null || true) if [ -n "${vpn_ip:-}" ]; then printf '\xe2\x8c\x82 %s / \xe2\x87\xa1 %s\n' "${local_ip:-}" "$vpn_ip" else - printf '%s\n' "${local_ip:-}" + printf '\xe2\x8c\x82 %s\n' "${local_ip:-}" fi