add VPN/Wireguard symbol to statusbar

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
Sam Bowlby 2021-04-05 08:43:40 -05:00 committed by Maarten van Gompel
parent 83d27eec2d
commit bcde43d369
2 changed files with 4 additions and 2 deletions

View file

@ -234,6 +234,8 @@ icon_wif=""
icon_bth=""
# shellcheck disable=SC2034
icon_pls=""
# shellcheck disable=SC2034
icon_key=""
#allow the user to override icons
if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/icons" ]; then

View file

@ -26,9 +26,9 @@ update() {
VPNDEVICE="$(nmcli con show | grep vpn | awk '{ print $4 }')"
WGDEVICE="$(nmcli con show | grep wireguard | awk '{ print $4 }')"
if [ -n "$VPNDEVICE" ] && [ "$VPNDEVICE" != "--" ]; then
VPN=" "
VPN=""
elif [ -n "$WGDEVICE" ] && [ "$WGDEVICE" != "--" ]; then
VPN=" "
VPN=""
fi
# W symbol if wireless is connect