A simple graphical tool to manage wireguard interfaces from the system tray
Project description
wg-tray
wg-tray enables to quickly bring up/down wireguard interfaces from the system tray, using wg
and wg-quick
.
Installation
$ pip install wg-tray
Usage
wg-tray [-h] [-v] [-c CONFIG]
optional arguments:
-h, --help show this help message and exit
-v, --version show program version info and exit
-c CONFIG, --config CONFIG path to the config file listing all wireguard interfaces
(default: none; use root privileges to look up in /etc/wireguard/)
The config file should simply list all wireguard interfaces, separated either by newlines or spaces (e.g. wg0 wg1
or
wg0
wg1
). The purpose of this config file is to avoid using root access on ls
to read in /etc
; however, its correctness is not checked and it is your responsability to keep it up to date.
If no config is provided, the interfaces are dynamically looked up in /etc/wireguard
.
If you want to avoid being prompted for your root password each time you run wg-tray
, use a config file and add the following lines to your sudoers file (sudo visudo
to edit), replacing <username>
with your user name:
<username> ALL=(ALL) NOPASSWD: /usr/bin/wg
<username> ALL=(ALL) NOPASSWD: /usr/bin/wg-quick
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file wg-tray-0.1.1.tar.gz
.
File metadata
- Download URL: wg-tray-0.1.1.tar.gz
- Upload date:
- Size: 241.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d84cdb83391acb761f51c7628bd556c4818a0d566076a347a419060dbeed087e |
|
MD5 | 5a1cb63873f6b9c5b471467c481574ce |
|
BLAKE2b-256 | 389f85ed0454c649444dd0440434ef0803d04e7668076a139d15dd5abcc99cc6 |