Skip to content

Xfce4 Genmon script for AdGuard VPN CLI

Notifications You must be signed in to change notification settings

downace/xfce4-genmon-adguard-vpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xfce4 genmon script for AdGuard VPN CLI

Xfce4 Generic Monitor Plugin script for AdGuard VPN CLI

  • View current status
  • Connect & disconnect
  • Select location (requires zenity)

Usage

Use main.sh as Command for the genmon widget.

Adjust config in config file.

Selecting location

See LOCATION variable in config file

Nopasswd mode

By default, this script will show terminal window when connecting - to allow entering sudo password when prompted.

To use nopasswd mode:

  1. Add NOPASSWD record for adguardvpn-cli to the sudoers file:
    yourusername = NOPASSWD: /path/to/adguardvpn-cli
    
    For example:
    echo "$USER ALL = NOPASSWD: /usr/local/bin/adguardvpn-cli" \
      | sudo tee /etc/sudoers.d/adguardvpn \
      && sudo chmod 440 /etc/sudoers.d/adguardvpn
  2. Set NOPASSWD=1 in config file

Known issues

  • 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-connecting file is such cases

About

Xfce4 Genmon script for AdGuard VPN CLI

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages