From e371d9edd474bcf89cf5d462eaccb8638900b390 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sat, 3 Oct 2020 19:27:15 -0400 Subject: Initial commit --- .local/bin/vpnmenu | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 .local/bin/vpnmenu (limited to '.local/bin/vpnmenu') diff --git a/.local/bin/vpnmenu b/.local/bin/vpnmenu new file mode 100755 index 0000000..d679c49 --- /dev/null +++ b/.local/bin/vpnmenu @@ -0,0 +1,14 @@ +#!/bin/sh + +current=$(expressvpn status | sed "s/.......................//; 1q") + +location=$(expressvpn list recomend | sed "1,4d; s/^.*\t//" | head | dmenu -l 10) + +if [ ! -n "$location" ] +then + notify-send -i "$HOME/.fonts/svg/shield.svg" -a "VPN Module" "Operation aborted" +else + expressvpn disconnect; expressvpn connect "$location" +fi + +# expressvpn disconnect; expressvpn connect "$location" -- cgit v1.2.3