Dotfiles/.config/polybar/themes/monolit-dracula/polybar-scripts/vpn-openvpn-status
horhik aec58dae23 split polybar by themes 2020-09-05 14:43:37 +03:00
..
screenshots split polybar by themes 2020-09-05 14:43:37 +03:00
README.md split polybar by themes 2020-09-05 14:43:37 +03:00
vpn-openvpn-status.sh split polybar by themes 2020-09-05 14:43:37 +03:00

README.md

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