Files
dot-files/polybar/scripts/openvpn-status.sh
2021-12-08 10:52:36 +01:00

5 lines
126 B
Bash

#!/bin/sh
printf "VPN: " && (pgrep -a openvpn$ | head -n 1 | awk '{print $NF }' | cut -d '.' -f 1 && echo down) | head -n 1