diff options
author | Ben Sima <ben@bsima.me> | 2018-06-13 21:36:56 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2018-06-13 21:36:56 -0700 |
commit | 77c9a177b2b595d4ce25095b58e2388fe33cc97a (patch) | |
tree | 0853d5c92d67538760005b9c4635a90115bd7ba4 /checkvpn |
init
Diffstat (limited to 'checkvpn')
-rwxr-xr-x | checkvpn | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/checkvpn b/checkvpn new file mode 100755 index 0000000..fcc0290 --- /dev/null +++ b/checkvpn @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +export DISPLAY=:0 + + +export VPN=$(nmcli con show --active | grep vpn | cut -d" " -f1) + +echo $VPN + +if [ -z $VPN ] +then + notify-send \ + -t 10000 \ + -u critical "No VPN connected" \ + "Connect that shit or the CIA will get ya" +fi |