1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-11-14 12:43:17 +00:00
Dotfiles/.config/polybar/themes/spacefull-dracula/polybar-scripts/vpn-wireguard-wg/README.md

27 lines
568 B
Markdown
Raw Normal View History

2020-07-27 04:59:00 +00:00
# Script: vpn-wireguard-wg
A script that shows the status of a chosen Wireguard connection.
![vpn-wireguard-wg](screenshots/1.png)
![vpn-wireguard-wg](screenshots/2.png)
## Configuration
You have to add the `wg` and `wg-quick` command to the `/etc/sudoers` NOPASSWD of your user:
```ini
user ALL=(ALL) NOPASSWD: /usr/bin/wg
user ALL=(ALL) NOPASSWD: /usr/bin/wg-quick
```
## Module
```ini
[module/vpn-wireguard-wg]
type = custom/script
exec = ~/polybar-scripts/vpn-wireguard-wg.sh
interval = 5
click-left = ~/polybar-scripts//vpn-wireguard-wg.sh --toggle &
```