commit dfca2be682fac34d65dbf3f17eaa2decce5e78e8 parent 78c64dc087b157d358727ebdab66dcca53c50700 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Sat, 15 Dec 2018 09:37:33 +0100 Add internet icon Diffstat:
M | links/.config/i3/i3blocks | | | 15 | ++++++++++++--- |
M | links/.config/i3/i3scripts/i3internet | | | 2 | +- |
2 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/links/.config/i3/i3blocks b/links/.config/i3/i3blocks @@ -103,13 +103,22 @@ signal=10 #interval=10 #signal=11 +# [i3battery BAT0] +# label=BAT +# interval=30 +# signal=12 + [i3battery BAT0] -label=BAT -#label=⚡ -#command=/usr/lib/i3blocks/battery +label=⚡ +command=/usr/lib/i3blocks/battery interval=30 signal=12 +[i3internet] +label= +signal=15 +interval=30 + [time] command=date '+%Y-%m-%d %H:%M:%S' interval=5 diff --git a/links/.config/i3/i3scripts/i3internet b/links/.config/i3/i3scripts/i3internet @@ -15,4 +15,4 @@ esac [ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "📶", int($3 * 100 / 70) "%" }') -printf "%s %s" "$wifiicon" "$(cat /sys/class/net/e*/operstate | sed "s/down/❎/;s/up/🌐/")" +printf "%s%s" "$wifiicon" "$(cat /sys/class/net/e*/operstate | sed "s/down/❎/;s/up/🌐/")"