aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/status
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2020-12-30 20:52:17 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2020-12-30 20:52:42 +0000
commit83dcb1549aff237367262d2f319865dc7b954a5a (patch)
treeca6c6ba2917796d24d0ffbae66b7b345803a595b /Scripts/.local/scripts/status
parent336294509d5ac7b058523fcf6ff310148af82d70 (diff)
downloaddotfiles-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/status')
-rwxr-xr-xScripts/.local/scripts/status/connection5
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