diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-05-09 11:29:51 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-05-09 11:29:51 +0200 |
commit | 6fff963d82c642451a4adefe29f91eb48a2c58ce (patch) | |
tree | f2a191585d7219a09b5786f79ed4a937ebc4f0a0 /i3blocks | |
parent | a02defa8b7c90214c5898e98317e14473a246a61 (diff) | |
download | scripts-6fff963d82c642451a4adefe29f91eb48a2c58ce.tar.gz scripts-6fff963d82c642451a4adefe29f91eb48a2c58ce.zip |
Set color to wifi when connected.
Diffstat (limited to 'i3blocks')
-rwxr-xr-x | i3blocks/i3internet.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i3blocks/i3internet.sh b/i3blocks/i3internet.sh index 55f5a5d..cf2162a 100755 --- a/i3blocks/i3internet.sh +++ b/i3blocks/i3internet.sh @@ -21,7 +21,7 @@ else # with IP #wifi="✔️$(nmcli | grep "$wifiDev: connected to " | cut -d' ' -f4-) ($(ip addr show $wifiDev | grep "inet " | cut -d' ' -f6)) ($(grep "^\s*w" /proc/net/wireless | awk '{print int($3 * 100 / 70)"%"}'))" # with name - wifi="✔️ $(nmcli | grep "$wifiDev: connected to " | cut -d' ' -f4-) ($(grep "^\s*w" /proc/net/wireless | awk '{print int($3 * 100 / 70)"%"}'))" + wifi="✔️ <span color='#79ff79'>$(nmcli | grep "$wifiDev: connected to " | cut -d' ' -f4-) ($(grep "^\s*w" /proc/net/wireless | awk '{print int($3 * 100 / 70)"%"}'))</span>" fi if [ -z "$(nmcli | grep $ethDev)" ]; then en="❌❗ No $ethDev" |