1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-23 08:28:00 +00:00
dotfiles/.config/polybar/scripts/check_vpn

16 lines
260 B
Bash
Executable File

#!/usr/bin/env bash
openvpn_icon="%{T2}%{T-}"
globalprotect_icon="%{T2}%{T-}"
output=""
if pgrep openvpn >/dev/null; then
output=${openvpn_icon}
fi
if pgrep gpclient >/dev/null; then
output="${output} ${globalprotect_icon}"
fi
echo "$output"