add VPN/Wireguard symbol to statusbar
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
parent
83d27eec2d
commit
bcde43d369
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue