From 3d2385fd1b6886994163702db4c9023ae74aaea7 Mon Sep 17 00:00:00 2001 From: the_4n0nym0u53 Date: Tue, 14 Dec 2021 13:31:42 +0100 Subject: [PATCH] Fix OpenVPN autoconnect. --- sway/.config/sway/autostart.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sway/.config/sway/autostart.sh b/sway/.config/sway/autostart.sh index ca75fdc..a4454aa 100755 --- a/sway/.config/sway/autostart.sh +++ b/sway/.config/sway/autostart.sh @@ -1,7 +1,8 @@ #!/bin/sh -protonvpn refresh -env SUDO_USER=$USER doas protonvpn c -f -# Uncomment below to use sudo instead of doas, comment the above line -#sudo protonvpn c -f -sway-launcher-desktop autostart +# Replace doas with sudo below if you don't have doas. +doas openvpn --config /etc/openvpn/client/dk.protonvpn.com.udp.ovpn --auth-user-pass /root/ovpn_creds.txt & +sleep 5 # Wait for Waybar to fully load +sway-launcher-desktop autostart & +disown +disown