add VPN/Wireguard symbol to statusbar

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
master
Sam Bowlby 4 years ago committed by Maarten van Gompel
parent 83d27eec2d
commit bcde43d369
  1. 2
      scripts/core/sxmo_common.sh
  2. 4
      scripts/core/sxmo_statusbar.sh

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

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

Loading…
Cancel
Save