mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-02 12:18:41 -05:00
14 lines
294 B
Plaintext
14 lines
294 B
Plaintext
|
#!/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
|