FollieHiyuki-dotfiles/home/.local/bin/info/vpn_show
2021-02-13 19:28:59 +03:00

14 lines
294 B
Bash
Executable File

#!/bin/sh
VPN=$(protonvpn status)
STATUS=$(echo "$VPN" | sed -n 1p | awk '{print $2}')
if [ "$STATUS" = "Connected" ]
then
SERVER=$(echo "$VPN" | sed -n 4p | awk '{print $2}')
LOAD=$(echo "$VPN" | sed -n 10p | awk '{print $2}')
echo "$SERVER,$LOAD"
else
echo "嬨 ..."
fi