added wireguard polybar stuff
This commit is contained in:
21
.config/polybar/wireguard-info.sh
Executable file
21
.config/polybar/wireguard-info.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
set -e
|
||||
|
||||
ID_LIGHT="0f9ed364-1b54-4a95-a45a-a24114f5be6b"
|
||||
ID_FULL="fa9f53b2-29b4-4c0e-80ca-38937ef8cad8"
|
||||
|
||||
if nmcli connection show --active | grep "$ID_LIGHT" > /dev/null
|
||||
then
|
||||
echo -n
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if nmcli connection show --active | grep "$ID_FULL" > /dev/null
|
||||
then
|
||||
echo -n 聯
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo -n 輦
|
||||
|
||||
Reference in New Issue
Block a user