1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-11-27 10:31:30 +00:00
Dotfiles/.config/polybar/polybar-scripts/vpn-openvpn-status
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-openvpn-status.sh add all dotfiles 2020-07-27 07:59:00 +03:00

Script: vpn-openvpn-status

A script that shows if OpenVPN is running and which configuration file it uses.

vpn-openvpn-status vpn-openvpn-status

Configuration

  • The configuration files must have an extension, e.g. .ovpn.
  • The configuration files must be stored in a directory, e.g. /etc/openvpn/conf.d.

Launch OpenVPN with the following command:

openvpn --daemon --auth-nocache --cd "/etc/openvpn/conf.d" --config "UK-Southampton.ovpn"

Module

[module/vpn-openvpn-status]
type = custom/script
exec = ~/polybar-scripts/vpn-openvpn-status.sh
interval = 5