wireguard polybar put ids in config

This commit is contained in:
Niklas 2020-10-14 16:36:21 +02:00
parent d65f55380e
commit 58d8e8fadd
2 changed files with 9 additions and 4 deletions

View File

@ -2,8 +2,11 @@
set -e set -e
ID_LIGHT="0f9ed364-1b54-4a95-a45a-a24114f5be6b"
ID_FULL="fa9f53b2-29b4-4c0e-80ca-38937ef8cad8" SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
source "$SCRIPTPATH/wireguard-config.sh"
if nmcli connection show --active | grep "$ID_LIGHT" > /dev/null if nmcli connection show --active | grep "$ID_LIGHT" > /dev/null
then then

View File

@ -2,8 +2,10 @@
set -e set -e
ID_LIGHT="0f9ed364-1b54-4a95-a45a-a24114f5be6b" SCRIPT=$(readlink -f "$0")
ID_FULL="fa9f53b2-29b4-4c0e-80ca-38937ef8cad8" SCRIPTPATH=$(dirname "$SCRIPT")
source "$SCRIPTPATH/wireguard-config.sh"
if nmcli connection show --active | grep "$ID_LIGHT" > /dev/null if nmcli connection show --active | grep "$ID_LIGHT" > /dev/null
then then