From 0440ce8dacab36fd6329b7f4e7545c70d9f4eb5d Mon Sep 17 00:00:00 2001 From: Daniel Carrillo Date: Sat, 10 Feb 2024 13:40:19 +0100 Subject: [PATCH] [polybar] Add GlobalProtect to check_vpn --- .config/polybar/scripts/check_vpn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/polybar/scripts/check_vpn b/.config/polybar/scripts/check_vpn index 396eb25..6f378a8 100755 --- a/.config/polybar/scripts/check_vpn +++ b/.config/polybar/scripts/check_vpn @@ -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'