1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-11-15 06:51:12 +00:00
dotfiles/.config/polybar/scripts/check_vpn

16 lines
260 B
Plaintext
Raw Normal View History

2019-07-18 16:45:46 +00:00
#!/usr/bin/env bash
openvpn_icon="%{T2}%{T-}"
globalprotect_icon="%{T2}%{T-}"
2019-07-18 16:45:46 +00:00
output=""
if pgrep openvpn >/dev/null; then
output=${openvpn_icon}
fi
2019-07-18 16:45:46 +00:00
if pgrep gpclient >/dev/null; then
output="${output} ${globalprotect_icon}"
fi
2019-07-18 16:45:46 +00:00
echo "$output"