From e0e1068bf00ee4e0859e596610f087aa791141f8 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Thu, 2 Jul 2026 11:35:35 +0100 Subject: Remove SNX Waybar integration --- dot_config/waybar/executable_snx-vpn-status.sh | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 dot_config/waybar/executable_snx-vpn-status.sh (limited to 'dot_config/waybar/executable_snx-vpn-status.sh') diff --git a/dot_config/waybar/executable_snx-vpn-status.sh b/dot_config/waybar/executable_snx-vpn-status.sh deleted file mode 100644 index f88c3a0..0000000 --- a/dot_config/waybar/executable_snx-vpn-status.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env dash -# Waybar custom/snx-vpn module: report the snx-rs (Check Point) tunnel -# state. `snxctl status` is fast (talks over a local UDS to the daemon) -# but might briefly stall during connect; cap it with `timeout`. - -# Bail out if the daemon socket isn't even there (snx-rs.service stopped). -out=$(timeout 2 snxctl status 2>/dev/null) || out= - -case "$out" in - '' | *"Disconnected"*) - printf '{"text":"󰌾 SNX","class":"down","tooltip":"snx-rs disconnected — click to connect"}\n' - ;; - *"Connecting"* | *"MFA pending"*) - printf '{"text":"󰌾 SNX…","class":"connecting","tooltip":"%s"}\n' "$(echo "$out" | head -1)" - ;; - *) - tooltip=$(echo "$out" | sed 's/"/\\"/g' | awk 'BEGIN{ORS="\\n"}{print}') - printf '{"text":"󰌾 SNX","class":"up","tooltip":"%s"}\n' "$tooltip" - ;; -esac -- cgit v1.3.1