Skip to content

Instantly share code, notes, and snippets.

@yzdann
Last active November 30, 2020 09:34
Show Gist options
  • Save yzdann/8be15720adb84be3a1449b38f660e753 to your computer and use it in GitHub Desktop.
Save yzdann/8be15720adb84be3a1449b38f660e753 to your computer and use it in GitHub Desktop.
WG="wgx"
WG_UP=$(ip -o link show | awk -F': ' '{print $2}'| grep $WG)
if [[ "$WG_UP" ]]; then
echo "<img>/home/yzdann/.scripts/wg26.png</img><click>konsole -e wg-quick down $WG</click>"
else
echo "<img>/home/yzdann/.scripts/wg26-gray.png</img><click>konsole -e wg-quick up $WG</click>"
fi
# genmon bash /home/yzdann/.scripts/wg.sh
@yzdann
Copy link
Author

yzdann commented Nov 30, 2020

wg26-gray

wg26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment