mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 23:08:01 +00:00
16 lines
276 B
Bash
Executable File
16 lines
276 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 "%{F#e7c111}$output%{F-}"
|