mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 16:18:00 +00:00
[polybar] Add GlobalProtect to check_vpn
This commit is contained in:
parent
89233343c6
commit
0440ce8dac
@ -5,7 +5,7 @@ OUTPUT=""
|
|||||||
openvpn=$(pgrep -c openvpn$)
|
openvpn=$(pgrep -c openvpn$)
|
||||||
[ "$openvpn" -gt 0 ] && OUTPUT=$(eval printf "%.0s" "{1..$openvpn}")
|
[ "$openvpn" -gt 0 ] && OUTPUT=$(eval printf "%.0s" "{1..$openvpn}")
|
||||||
|
|
||||||
openfortivpn=$(pgrep -c openfortivpn$)
|
globalprotect=$(pgrep -c gpclient$)
|
||||||
[ "$openfortivpn" -gt 0 ] && OUTPUT=${OUTPUT}$(eval printf '%.0s' "{1..$openfortivpn}")
|
[ "$globalprotect" -gt 0 ] && OUTPUT=${OUTPUT}$(eval printf '%.0s' "{1..$globalprotect}")
|
||||||
|
|
||||||
echo "$OUTPUT" | sed -e 's/\(.\)/\1 /g'
|
echo "$OUTPUT" | sed -e 's/\(.\)/\1 /g'
|
||||||
|
Loading…
Reference in New Issue
Block a user