1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-09-16 04:47:18 +00:00
Dotfiles/.config/polybar/polybar-scripts/vpn-wireguard-wg
2020-07-27 07:59:00 +03:00
..
screenshots add all dotfiles 2020-07-27 07:59:00 +03:00
README.md add all dotfiles 2020-07-27 07:59:00 +03:00
vpn-wireguard-wg.sh add all dotfiles 2020-07-27 07:59:00 +03:00

Script: vpn-wireguard-wg

A script that shows the status of a chosen Wireguard connection.

vpn-wireguard-wg vpn-wireguard-wg

Configuration

You have to add the wg and wg-quick command to the /etc/sudoers NOPASSWD of your user:

user ALL=(ALL) NOPASSWD: /usr/bin/wg
user ALL=(ALL) NOPASSWD: /usr/bin/wg-quick

Module

[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 &