[polybar] Add GlobalProtect to check_vpn

This commit is contained in:
Daniel Carrillo 2024-02-10 13:40:19 +01:00
parent 89233343c6
commit 0440ce8dac
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ OUTPUT=""
openvpn=$(pgrep -c openvpn$)
[ "$openvpn" -gt 0 ] && OUTPUT=$(eval printf "%.0s" "{1..$openvpn}")
openfortivpn=$(pgrep -c openfortivpn$)
[ "$openfortivpn" -gt 0 ] && OUTPUT=${OUTPUT}$(eval printf '%.0s' "{1..$openfortivpn}")
globalprotect=$(pgrep -c gpclient$)
[ "$globalprotect" -gt 0 ] && OUTPUT=${OUTPUT}$(eval printf '%.0s' "{1..$globalprotect}")
echo "$OUTPUT" | sed -e 's/\(.\)/\1 /g'