clean up scripts
This commit is contained in:
9
.config/polybar/scripts/vpn-networkmanager-status.sh
Normal file
9
.config/polybar/scripts/vpn-networkmanager-status.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
vpn="$(nmcli -t -f name,type connection show --order name --active 2>/dev/null | grep vpn | head -1 | cut -d ':' -f 1)"
|
||||
|
||||
if [ -n "$vpn" ]; then
|
||||
echo "#2 VPN: $vpn"
|
||||
else
|
||||
echo "#2 VPN: DOWN "
|
||||
fi
|
||||
Reference in New Issue
Block a user