diff options
| author | 2026-07-02 11:35:35 +0100 | |
|---|---|---|
| committer | 2026-07-02 11:35:35 +0100 | |
| commit | e0e1068bf00ee4e0859e596610f087aa791141f8 (patch) | |
| tree | 0e09fd8104ed6dab3cc70b87340718a30e5197d1 /dot_config/waybar/executable_snx-vpn-status.sh | |
| parent | cf5a2f46f0167c8495d28de5b1364c8bc460b6d0 (diff) | |
| download | dotfiles-e0e1068bf00ee4e0859e596610f087aa791141f8.tar.gz dotfiles-e0e1068bf00ee4e0859e596610f087aa791141f8.tar.bz2 dotfiles-e0e1068bf00ee4e0859e596610f087aa791141f8.zip | |
Remove SNX Waybar integration
Diffstat (limited to 'dot_config/waybar/executable_snx-vpn-status.sh')
| -rw-r--r-- | dot_config/waybar/executable_snx-vpn-status.sh | 20 |
1 files changed, 0 insertions, 20 deletions
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":"<span color=\\"#928374\\"><s> SNX</s></span>","class":"down","tooltip":"snx-rs disconnected — click to connect"}\n' - ;; - *"Connecting"* | *"MFA pending"*) - printf '{"text":"<span color=\\"#fabd2f\\"> SNX…</span>","class":"connecting","tooltip":"%s"}\n' "$(echo "$out" | head -1)" - ;; - *) - tooltip=$(echo "$out" | sed 's/"/\\"/g' | awk 'BEGIN{ORS="\\n"}{print}') - printf '{"text":"<span color=\\"#b8bb26\\"> SNX</span>","class":"up","tooltip":"%s"}\n' "$tooltip" - ;; -esac |
