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

10 lines
147 B
Bash

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