Last active
November 30, 2020 09:34
-
-
Save yzdann/8be15720adb84be3a1449b38f660e753 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Author
yzdann
commented
Nov 30, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment