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:
parent
82550fdc9b
commit
de4b0c124a
@ -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"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user