diff options
author | Adam T. Carpenter <atc@53hor.net> | 2021-02-28 08:15:17 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2021-02-28 08:15:17 -0500 |
commit | 186125d7512bd4dd095cd7b60bc648eb603c2290 (patch) | |
tree | 6392b7d9cfd4aedea093b98152d83b8d7a01afec /i3blocks-net.sh | |
parent | fef48aa78c305db6b5be81bff5facacba0a76f5f (diff) | |
download | scripts-186125d7512bd4dd095cd7b60bc648eb603c2290.tar.xz scripts-186125d7512bd4dd095cd7b60bc648eb603c2290.zip |
moved all i3-related scripts into i3 or i3blocks config
Diffstat (limited to 'i3blocks-net.sh')
-rwxr-xr-x | i3blocks-net.sh | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/i3blocks-net.sh b/i3blocks-net.sh deleted file mode 100755 index d0a87a4..0000000 --- a/i3blocks-net.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -icon_ethernet= -icon_down= -icon_wireless= - -is_ethernet=$(ifconfig em0 | grep status | cut -d\: -f2) -inet=$(ifconfig lagg0 | grep inet\ | cut -w -f3 | tr '\n' ' ') -if [ "$is_ethernet" = " active" ]; then - printf "%s%s" $icon_ethernet "$inet" -elif [ "$(ifconfig wlan0 | grep status | cut -d\: -f2)" = " associated" ]; then - ssid=$(ifconfig wlan0 | sed -n 's/^.*ssid \(.*\) channel.*$/\1/p') - [ -n "$ssid" ] && printf "%s%s %s" $icon_wireless "$ssid" "$inet" -else - printf "%sOffline" $icon_down -fi - -printf "\n" |