Xfce4 Generic Monitor Plugin script for AdGuard VPN CLI
- View current status
- Connect & disconnect
- Select location (requires zenity)
Use main.sh as Command for the genmon widget.
Adjust config in config file.
See LOCATION variable in config file
By default, this script will show terminal window when connecting - to allow entering sudo password when prompted.
To use nopasswd mode:
- Add NOPASSWD record for adguardvpn-cli to the sudoers file:
For example:
yourusername = NOPASSWD: /path/to/adguardvpn-cliecho "$USER ALL = NOPASSWD: /usr/local/bin/adguardvpn-cli" \ | sudo tee /etc/sudoers.d/adguardvpn \ && sudo chmod 440 /etc/sudoers.d/adguardvpn
- Set
NOPASSWD=1inconfigfile
- Login status is not checked
- Sometimes connection marker file is not deleted (e.g. when connection process is killed).
You can manually remove
genmon-vpn-status-connectingfile is such cases


