adding netwidget script

This commit is contained in:
Chris Cochrun 2021-08-18 17:05:49 -05:00
parent c27a826eb0
commit 26b21e718c

7
scripts/netwidget Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
net=$(nmcli | head -1 | awk '{print $4}')
if [[ $net == "Wired" ]]; then
echo " $net"
else
echo " $net"
fi