diff options
author | Aleksei <alex3kov@zoho.com> | 2024-12-07 12:24:32 +0300 |
---|---|---|
committer | Aleksei <alex3kov@zoho.com> | 2024-12-07 12:24:32 +0300 |
commit | ba9c314197be3bf0cb98b320f32362c4785513e4 (patch) | |
tree | 84434a8e2674f263338bd7b1f563f9c2760223ae | |
parent | 85496944e13a7cbf1c9132f9c8119f7a386a6b94 (diff) |
-rwxr-xr-x | statusline.sh | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/statusline.sh b/statusline.sh index e45da0d..cb25c3a 100755 --- a/statusline.sh +++ b/statusline.sh @@ -3,10 +3,6 @@ export HOSTNAME=$(cat /etc/hostname) export LC_ALL=ru_RU.UTF-8 while true do - ipinfo=$(ip -json address | jq -r 'map( - select(.link_type!="loopback" and .ifname!="vswitch" and .operstate!="DOWN") - |.ifname+"/"+ (.addr_info[]|select(.scope!="link")|.local))|join(" ")' -) command -v acpi 2>/dev/null 1>&2 && { bat="BAT:$(acpi -b|head -n1|sed -r 's/.*, ([0-9]+\%).*/\1/') " [ "$bat" = "BAT: " ] && bat="" @@ -30,7 +26,7 @@ do date="chill $curweekday $(date +'%Y-%m-%d')" ;; esac - printf "|%s|%s|%s|%s%s\n" \ - "$ipinfo" "$HOSTNAME" "$date" "$bat" "$layout" # "$netdev_stat" + printf "|%s|%s%s\n" \ + "$date" "$bat" "$layout" # "$netdev_stat" sleep 4 done |