Replies: 2 comments
-
Thank you for putting this together. I was about to implement something similar on my own when I stumbled upon this, and it helped me and saved me some time. I created a ready to use setup script based on this guide so it might make it easier for others to get this set up. You may find it here. |
Beta Was this translation helpful? Give feedback.
-
Big thanks for the scripts above! 🙌 I also gave it a go and turned it into a one-line installer for quick setup. I used the Omarchy bash scripts as a coding guideline, trying to keep it consistent with the project’s style. You can find my implementation here: JacobusXIII/omarchy-wireguard-vpn-toggle |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Context
I needed to use ProtonVPN but there is no official application for Arch , although there is package in AUR I opted to implement my own solution in Waybar, I am describing it here in case it might be helpful for someone.
Preparation
Need to install Wireguard and copy the VPN configuration files into /etc/wireguard . This is described here for ProtonVPN , should be similar for other VPN as long as they provide the configuration files Installing Wireguard and ProtonVPN
Once we have the files in the folder we need to add wireguard command
wg-quick
to the sudoers configuration so that we do not need to provide the password when switching the VPN on and off . Evaluate carefully that this is not a security issue in your case.Installation
We are gonna generate 3 scripts in the .config/waybar folder , although another folder could be used. And we are gonna update the Waybar config and style.css files. a vpn.conf file will be created to store the selected VPN to use, this can be changed by right-click on the icon this will open a new window and will ask for the password.
Scripts
Update style.css by adding the following styles. Change or remove the activate color if you don't like the green color.
Update the waybar.conf file
Beta Was this translation helpful? Give feedback.
All reactions