1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

show grey colour when wireguard is disabled

This commit is contained in:
Ryan Kes 2020-03-12 22:30:12 +01:00
parent 82550fdc9b
commit de4b0c124a

View File

@ -1,12 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
updown="$(sudo wg show $1 2> /dev/null)" updown="$(sudo wg show "$1" 2> /dev/null)"
if [ "$updown" ]; then if [ "$updown" ]; then
spaceToggle=true echo "嬨 $1"
icon="嬨"
else else
icon="" echo "%{F#666}嬨 $1%{F-}"
fi fi
echo "$icon" "$1"