diff options
| author | 2026-05-14 10:58:38 +0100 | |
|---|---|---|
| committer | 2026-05-14 10:58:38 +0100 | |
| commit | ec3fa96850ff534a241f7ebf2e4cdc13efdf3891 (patch) | |
| tree | 66eb4670d4309d1d1b764befde7e7d15a0ab91f5 /dot_config/waybar/config.jsonc | |
| parent | 0b506ac67c33939732bdd91d39a8a632bcbe0841 (diff) | |
| download | dotfiles-ec3fa96850ff534a241f7ebf2e4cdc13efdf3891.tar.gz dotfiles-ec3fa96850ff534a241f7ebf2e4cdc13efdf3891.tar.bz2 dotfiles-ec3fa96850ff534a241f7ebf2e4cdc13efdf3891.zip | |
feat(waybar): snx-rs VPN status indicator + click toggle
New custom/snx-vpn module sits next to custom/vpn (the wireguard one):
- snx-vpn-status.sh shells out to `snxctl status` (timeout 2s) and maps
the output to three states: down (grey strikethrough), connecting/MFA
(amber), up (green). Tooltip shows the full status block when up.
- snx-vpn-toggle.sh disconnects when up, runs snxctl-chromium detached
when down (so SAML lands in the flatpak ungoogled-chromium without
blocking waybar). Both paths refresh the module via SIGRTMIN+9.
Diffstat (limited to 'dot_config/waybar/config.jsonc')
| -rw-r--r-- | dot_config/waybar/config.jsonc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dot_config/waybar/config.jsonc b/dot_config/waybar/config.jsonc index e5ea09b..80eb560 100644 --- a/dot_config/waybar/config.jsonc +++ b/dot_config/waybar/config.jsonc @@ -10,6 +10,7 @@ "temperature", "custom/memory", "custom/vpn", + "custom/snx-vpn", "network#bond", "custom/dock", "battery", @@ -119,6 +120,14 @@ "on-click": "~/.config/waybar/vpn-toggle.sh", }, + "custom/snx-vpn": { + "exec": "~/.config/waybar/snx-vpn-status.sh", + "return-type": "json", + "interval": 5, + "signal": 9, + "on-click": "~/.config/waybar/snx-vpn-toggle.sh", + }, + "battery": { "format": "{icon} {capacity}%", "format-charging": " {capacity}%", |
