summaryrefslogtreecommitdiff
path: root/checkvpn
blob: fcc02902fa7c402a82a36a8a6e047fc928820c46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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