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
|
||||
|
||||
updown="$(sudo wg show $1 2> /dev/null)"
|
||||
updown="$(sudo wg show "$1" 2> /dev/null)"
|
||||
|
||||
if [ "$updown" ]; then
|
||||
spaceToggle=true
|
||||
icon="嬨"
|
||||
echo "嬨 $1"
|
||||
else
|
||||
icon=""
|
||||
echo "%{F#666}嬨 $1%{F-}"
|
||||
fi
|
||||
|
||||
echo "$icon" "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user