clean up scripts
This commit is contained in:
9
.config/polybar/scripts/vpn-openvpn-isrunning.sh
Normal file
9
.config/polybar/scripts/vpn-openvpn-isrunning.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
connection=$(pgrep -a openvpn$ | head -n 1 | awk '{print $NF }' | cut -d '.' -f 1)
|
||||
|
||||
if [ -n "$connection" ]; then
|
||||
echo "VPN: connection"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
Reference in New Issue
Block a user