Fix OpenVPN autoconnect.

This commit is contained in:
the_4n0nym0u53 2021-12-14 13:31:42 +01:00
parent 4076f44c1e
commit 3d2385fd1b
No known key found for this signature in database
GPG key ID: 35EE09F5481049BB

View file

@ -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