From d27ed681f6e5b3557418b3a1180f064e69515e82 Mon Sep 17 00:00:00 2001 From: czjstmax Date: Sun, 21 Dec 2025 18:14:19 +0100 Subject: cumulative config files (dotfiles) update Signed-off-by: czjstmax --- cfg/i3/kurobar.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cfg/i3/kurobar.sh') diff --git a/cfg/i3/kurobar.sh b/cfg/i3/kurobar.sh index 7018460..a9d82a0 100644 --- a/cfg/i3/kurobar.sh +++ b/cfg/i3/kurobar.sh @@ -21,7 +21,8 @@ while true; do # --- LAN ip --- # 192.168.x.x - localip=$(hostname -i | grep -oE '192\.168\.[0-9]+\.[0-9]+') + localip=$(ip -4 addr show | awk '/inet 192\.168\./ {print $2}' | cut -d/ -f1 | head -n1) + #localip=$(hostname -i | grep -oE '192\.168\.[0-9]+\.[0-9]+') # --- public IP --- # attached to the fetchpubip service and the .config/i3/fetch_public_ip.sh script @@ -38,7 +39,7 @@ while true; do dt=$(date '+%Y年%m月%d日 %H時%M分%S秒') # --- print bar line --- - echo "vol.$volume% | bat.$bat% | bri.$bright | lan.$localip | pub.$pubip | $mem_used/$mem_total gb | $dt" + echo "vol.$volume% | bat.$bat% | bri.$bright | lan.$localip | pub.$pubip | "$mem_used"/"$mem_total"gb | $dt" sleep 0.01 done -- cgit v1.3.1