aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/waybar
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-19 15:16:09 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-19 15:16:09 +0100
commit027fa12fc3fbc138dc8bbbb50b066735943d8b27 (patch)
tree9228203e38cd75edd4861270da45aa03cd0e76d3 /dot_config/waybar
parent31a92930f7ef231069ebaf42ec2d0255abc22c25 (diff)
downloaddotfiles-027fa12fc3fbc138dc8bbbb50b066735943d8b27.tar.gz
dotfiles-027fa12fc3fbc138dc8bbbb50b066735943d8b27.tar.bz2
dotfiles-027fa12fc3fbc138dc8bbbb50b066735943d8b27.zip
revert: drop snxctl-chromium wrapper, snx-rs works with default browser now
User confirms snx-rs's SAML loopback no longer needs chromium routing. Remove: - dot_local/bin/snxctl-chromium (PATH-override wrapper) - dot_local/share/snx-rs/bin/xdg-open (chromium shim) - snx-rs LibreWolf SAML note in user-overrides.js The waybar snx-vpn toggle now just runs `snxctl connect` detached, no wrapper indirection.
Diffstat (limited to 'dot_config/waybar')
-rw-r--r--dot_config/waybar/executable_snx-vpn-toggle.sh13
1 files changed, 2 insertions, 11 deletions
diff --git a/dot_config/waybar/executable_snx-vpn-toggle.sh b/dot_config/waybar/executable_snx-vpn-toggle.sh
index f42690d..12738af 100644
--- a/dot_config/waybar/executable_snx-vpn-toggle.sh
+++ b/dot_config/waybar/executable_snx-vpn-toggle.sh
@@ -1,7 +1,5 @@
#!/bin/sh
-# Toggle the snx-rs (Check Point) tunnel. Connect goes through the
-# snxctl-chromium wrapper so SAML lands in the flatpak ungoogled
-# chromium (LibreWolf blocks the 127.0.0.1:7779 callback).
+# Toggle the snx-rs (Check Point) tunnel.
#
# Refresh the waybar custom/snx-vpn module immediately with SIGRTMIN+9.
set -eu
@@ -10,14 +8,7 @@ state=$(timeout 2 snxctl status 2>/dev/null || echo Disconnected)
case "$state" in
*"Disconnected"*)
- # Detach so waybar doesn't block waiting for SAML. The inner script
- # re-signals waybar when the connect attempt finishes so the badge
- # flips immediately to its final state.
- # shellcheck disable=SC2016
- setsid -f sh -c '
- "$HOME/.local/bin/snxctl-chromium" >/tmp/snxctl-chromium.log 2>&1
- pid=$(pidof waybar) && kill -SIGRTMIN+9 $pid 2>/dev/null || true
- '
+ setsid -f snxctl connect >/tmp/snxctl.log 2>&1 &
;;
*)
snxctl disconnect >/dev/null 2>&1 || true