From bcde43d369da856e9a2974b199c41baf628ae2ce Mon Sep 17 00:00:00 2001 From: Sam Bowlby Date: Mon, 5 Apr 2021 08:43:40 -0500 Subject: [PATCH] add VPN/Wireguard symbol to statusbar Signed-off-by: Maarten van Gompel --- scripts/core/sxmo_common.sh | 2 ++ scripts/core/sxmo_statusbar.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/core/sxmo_common.sh b/scripts/core/sxmo_common.sh index abe4f03..91297bb 100644 --- a/scripts/core/sxmo_common.sh +++ b/scripts/core/sxmo_common.sh @@ -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 diff --git a/scripts/core/sxmo_statusbar.sh b/scripts/core/sxmo_statusbar.sh index 776b6cf..d5bd0e8 100755 --- a/scripts/core/sxmo_statusbar.sh +++ b/scripts/core/sxmo_statusbar.sh @@ -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