From da8c4b7b65235909b7c03da480689d9d871f8d59 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Thu, 24 Jan 2019 14:24:44 +0100 Subject: Created music mode and added some other little stuff. --- i3blocks/i3internet.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'i3blocks/i3internet.sh') diff --git a/i3blocks/i3internet.sh b/i3blocks/i3internet.sh index a148928..ab26611 100755 --- a/i3blocks/i3internet.sh +++ b/i3blocks/i3internet.sh @@ -11,9 +11,9 @@ if [ $wstatus = "down" ]; then wifi="❌" else # with IP - #wifi="$(nmcli | grep "wlp2s0: conectado to " | cut -d' ' -f4-) ($(ip addr show wlp2s0 | grep "inet " | cut -d' ' -f6)) ($(grep "^\s*w" /proc/net/wireless | awk '{print int($3 * 100 / 70)"%"}'))" + wifi="$(nmcli | grep "wlp2s0: conectado to " | cut -d' ' -f4-) ($(ip addr show wlp2s0 | grep "inet " | cut -d' ' -f6)) ($(grep "^\s*w" /proc/net/wireless | awk '{print int($3 * 100 / 70)"%"}'))" # no IP - wifi="$(nmcli | grep "wlp2s0: conectado to " | cut -d' ' -f4-) ($(grep "^\s*w" /proc/net/wireless | awk '{print int($3 * 100 / 70)"%"}'))" + #wifi="$(nmcli | grep "wlp2s0: conectado to " | cut -d' ' -f4-) ($(grep "^\s*w" /proc/net/wireless | awk '{print int($3 * 100 / 70)"%"}'))" fi if [ $estatus = "down" ]; then en="❌" -- cgit v1.2.1