diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-08-03 20:07:25 +0200 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-08-03 20:07:25 +0200 |
commit | 68c0d2f56d9e9dc8fd37a76e33d71e6c9422ee0f (patch) | |
tree | e8cf88bc0dd9739341bd47f494370e0ceddc6d24 | |
parent | Prepare to add ethernet checking dwm-status (diff) | |
download | dwm-68c0d2f56d9e9dc8fd37a76e33d71e6c9422ee0f.tar.gz dwm-68c0d2f56d9e9dc8fd37a76e33d71e6c9422ee0f.tar.bz2 dwm-68c0d2f56d9e9dc8fd37a76e33d71e6c9422ee0f.zip |
Prepare to add ethernet checking dwm-status part 2
-rwxr-xr-x | scripts/dwm-status | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/dwm-status b/scripts/dwm-status index 30e4712..3981255 100755 --- a/scripts/dwm-status +++ b/scripts/dwm-status @@ -68,9 +68,11 @@ tor() { fi } -connection() { +network() { #Add ethernet checking (plugged in) Icon(s): + #If this contains a 1 /sys/class/net/eth?/carrier:0/1 + # https://stackoverflow.com/questions/808560/how-to-detect-the-physical-connected-state-of-a-network-cable-connector if grep -q wlan* "/proc/net/wireless"; then @@ -190,7 +192,7 @@ status() { \ bluetooth - connection + network temperature |