diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-12-30 20:52:17 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-12-30 20:52:42 +0000 |
commit | 83dcb1549aff237367262d2f319865dc7b954a5a (patch) | |
tree | ca6c6ba2917796d24d0ffbae66b7b345803a595b /Scripts/.local/scripts | |
parent | 336294509d5ac7b058523fcf6ff310148af82d70 (diff) | |
download | dotfiles-83dcb1549aff237367262d2f319865dc7b954a5a.tar.gz dotfiles-83dcb1549aff237367262d2f319865dc7b954a5a.tar.bz2 dotfiles-83dcb1549aff237367262d2f319865dc7b954a5a.zip |
(Scripts/Status)~set connection text to have the connection name
Diffstat (limited to 'Scripts/.local/scripts')
-rwxr-xr-x | Scripts/.local/scripts/status/connection | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Scripts/.local/scripts/status/connection b/Scripts/.local/scripts/status/connection index c201582..301797b 100755 --- a/Scripts/.local/scripts/status/connection +++ b/Scripts/.local/scripts/status/connection @@ -3,7 +3,8 @@ internet=$(nmcli g | sed -n 2p | awk '{print $1}') if [[ $internet == "connected" ]] then - echo "" + con=$(nmcli | grep "connected to" | sed 's/.*: connected to \(.*\)/\1/g') + echo " " $con else - echo "" + echo " Not Connected" fi |