From 66b9a601393feff6cdaa22070330cd01f9a7cf6a Mon Sep 17 00:00:00 2001 From: David Aizenberg Date: Wed, 3 Dec 2025 00:05:20 +0100 Subject: [PATCH] update --- .chezmoi.toml.tmpl | 10 +++++----- .../hypr/scripts/executable_vpn-switcher.sh.tmpl | 6 ++++++ .../waybar/scripts/executable_vpn-status.sh | 2 +- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl index 80a6a3e..f0a1a44 100644 --- a/.chezmoi.toml.tmpl +++ b/.chezmoi.toml.tmpl @@ -37,11 +37,11 @@ # Device-specific configuration {{- if eq $deviceProfile "desktop" }} - primaryMonitor = "DP-1" - secondaryMonitor = "DP-2" - primaryResolution = "2560x1440@165" - secondaryResolution = "2560x1440@60" - hasMultipleMonitors = true + primaryMonitor = "DP-2" + secondaryMonitor = "" + primaryResolution = "2560x1440@144" + secondaryResolution = "" + hasMultipleMonitors = false hasTouchpad = false hasBattery = false idleTimeout = 300 diff --git a/home/private_dot_config/hypr/scripts/executable_vpn-switcher.sh.tmpl b/home/private_dot_config/hypr/scripts/executable_vpn-switcher.sh.tmpl index 001243e..2e698d9 100644 --- a/home/private_dot_config/hypr/scripts/executable_vpn-switcher.sh.tmpl +++ b/home/private_dot_config/hypr/scripts/executable_vpn-switcher.sh.tmpl @@ -127,6 +127,7 @@ def build_menu(): lines.append(" ● Exit Node Active - Disconnect") for node in get_ts_exit_nodes(): lines.append(f" ○ {node['hostname']} ({node['country']}/{node['city']})") + lines.append(" ⊘ Tailscale Down") else: lines.append(" ○ Start Tailscale") @@ -205,6 +206,11 @@ def handle_selection(selection): notify("Tailscale started") return + if clean == "Tailscale Down": + run(["tailscale", "down"]) + notify("Tailscale stopped") + return + for node in ts_exit_nodes: if node["hostname"] in clean or node["short"] in clean: disconnect_all_wg() diff --git a/home/private_dot_config/waybar/scripts/executable_vpn-status.sh b/home/private_dot_config/waybar/scripts/executable_vpn-status.sh index 6ba5098..da1adce 100644 --- a/home/private_dot_config/waybar/scripts/executable_vpn-status.sh +++ b/home/private_dot_config/waybar/scripts/executable_vpn-status.sh @@ -43,7 +43,7 @@ get_status() { fi # Check Tailscale - if command -v tailscale &>/dev/null; then + if command -v tailscale &>/dev/null && tailscale status &>/dev/null; then ts_json=$(tailscale status --json 2>/dev/null) if [[ -n "$ts_json" ]]; then ts_state=$(echo "$ts_json" | jq -r '.BackendState // empty')