i3/i3status/checkExpress.sh
1	#!/bin/bash
2
3 expressValue=$(expressvpn status | grep Connected 2>&1 > /dev/null; echo $?)
4
5 if [[ "$expressValue" -ne 0 ]]; then
6 echo "ExpressVPN not connected"
7 elif [[ "$expressValue" -eq 0 ]]; then
8 echo "ExpressVPN connected"
9 else
10 echo "Could not determine ExpressVPN status"
11 fi