From afbfcc9b2571e603021401a421b08e32807d7335 Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Sun, 31 Aug 2025 14:45:02 -0700 Subject: [PATCH] New backup 2025-08-31 14:45:02 --- de/home/.config/eww/scripts/bar/networking | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/de/home/.config/eww/scripts/bar/networking b/de/home/.config/eww/scripts/bar/networking index 882023c..8fe4482 100755 --- a/de/home/.config/eww/scripts/bar/networking +++ b/de/home/.config/eww/scripts/bar/networking @@ -19,20 +19,21 @@ function ifstatus(){ fi vpn_cons=$(nmcli -g TYPE,NAME connection show --active | grep -e "vpn" -e "wireguard") - case "${vpn_cons//\n/;}" in - *ProtonVPN|*'ProtonVPN;') + echo "${vpn_cons//$'\n'/;}" + case "${vpn_cons//$'\n'/;}" in + *ProtonVPN|*ProtonVPN\;*) is_proton='true' ;;& - *ProtonVPN-SC|*'ProtonVPN-SC;') + *ProtonVPN-SC|*ProtonVPN-SC\;*) is_proton_sc='true' ;;& - *HomeVPN) + *HomeVPN|*HomeVPN\;*) is_homevpn='true' ;;& - *HomeVPN-Full) + *HomeVPN-Full|*HomeVPN-Full\;*) is_homevpn_full='true' ;;& - *ProtonVPN|*ProtonVPN-SC|*HomeVPN|*HomeVPN-Full) + *ProtonVPN*|*ProtonVPN-SC*|*HomeVPN*|*HomeVPN-Full*) is_vpn='true' ;; esac