summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRobin Seger <pixelkhaos@gmail.com>2025-10-14 07:05:15 +0200
committerGitHub <noreply@github.com>2025-10-14 16:05:15 +1100
commitfe4ebb79b6162d7e5e4e9a00d8a39ff10876fb8c (patch)
treef77520d936b845bd27e47809e941eb83f46187db /modules
parentinternal: fix lsp warnings (diff)
downloadcaelestia-shell-fe4ebb79b6162d7e5e4e9a00d8a39ff10876fb8c.tar.gz
caelestia-shell-fe4ebb79b6162d7e5e4e9a00d8a39ff10876fb8c.tar.bz2
caelestia-shell-fe4ebb79b6162d7e5e4e9a00d8a39ff10876fb8c.zip
feat: VPN toggle (#689)
* feat: configurable VPN toggle for Wireguard - Added VPN service for wg-quick - Added VPN toggle to utilities quick toggles - Configuration in UtilitiesConfig (enabled, connectionName) * fix: monitoring and toasts - Using nmcli monitor for state detection instead of polling - Added VPN toast notifications * fix: use polkit * feat: multi-provider VPN support - Added support for netbird and tailscale providers - Universal interface detection using ip link show - Provider-specific privilege handling (pkexec only for wireguard) - Updated README with VPN configuration examples * feat: less hardcoded, configurable providers * removed comments * code style changes * reorganize signal handler
Diffstat (limited to '')
-rw-r--r--modules/utilities/cards/Toggles.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/utilities/cards/Toggles.qml b/modules/utilities/cards/Toggles.qml
index 82aac95..3d18e72 100644
--- a/modules/utilities/cards/Toggles.qml
+++ b/modules/utilities/cards/Toggles.qml
@@ -84,6 +84,14 @@ StyledRect {
checked: Notifs.dnd
onClicked: Notifs.dnd = !Notifs.dnd
}
+
+ Toggle {
+ icon: "vpn_key"
+ checked: VPN.connected
+ enabled: !VPN.connecting
+ visible: VPN.enabled
+ onClicked: VPN.toggle()
+ }
}
}