diff options
| author | czjstmax <jstmaxlol@disroot.org> | 2025-12-21 18:14:19 +0100 |
|---|---|---|
| committer | czjstmax <jstmaxlol@disroot.org> | 2025-12-21 18:14:19 +0100 |
| commit | d27ed681f6e5b3557418b3a1180f064e69515e82 (patch) | |
| tree | 9185570a645dc54be55869bc83f41e84032b02c9 /cfg/i3/kurobar.sh | |
| parent | d2d638e7a637bc5dcfb1ef7b2525be6a8d20df18 (diff) | |
cumulative config files (dotfiles) update
Signed-off-by: czjstmax <jstmaxlol@disroot.org>
Diffstat (limited to 'cfg/i3/kurobar.sh')
| -rw-r--r-- | cfg/i3/kurobar.sh | 5 |
1 files changed, 3 insertions, 2 deletions
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 |