Files
dotfiles/Scripts/.local/scripts/status/connection
Aryadev Chavali ad853af43b (SXHkD|Scripts)~changed some details
~ made emacsclient calls with no alternate editors in
  eselect (confidence in server)
~ made notmuch option on eselect actually work properly
~ adjusted icons in status scripts
2022-09-14 00:45:42 +01:00

11 lines
246 B
Bash
Executable File

#!/usr/bin/env bash
internet=$(nmcli g | sed -n 2p | awk '{print $1}')
if [[ $internet == "connected" ]]
then
con=$(nmcli | grep "connected to" | sed 's/.*: connected to \(.*\)/\1/g')
echo "" $con
else
echo " Not Connected"
fi