mirror of
https://github.com/bvanroll/_dotfiles.git
synced 2025-08-29 20:12:42 +00:00
26 lines
520 B
Markdown
26 lines
520 B
Markdown
# openvpn
|
|
|
|
Support multiple VPN, with colors.
|
|
|
|
# Usage
|
|
|
|
Add the following to your i3blocks config:
|
|
|
|
``` ini
|
|
[openvpn]
|
|
command=$SCRIPT_DIR/openvpn
|
|
interval=20
|
|
PID_FILE_FORMAT='/run/openvpn/*.pid'
|
|
```
|
|
|
|
Note: devices in configuration file should be named with their number (ex: tun0, tap1),
|
|
as dynamic devices are not supported.
|
|
Also make sure that your openvpn config filename ends in `.conf`.
|
|
|
|
# Options
|
|
|
|
```
|
|
Usage: openvpn [-p pid_file_format]
|
|
-p : format string to glob all pid files (default '/run/openvpn/*.pid')
|
|
```
|