dotfiles/.i3blocks/vpn

9 lines
189 B
Text
Raw Normal View History

#!/bin/bash
if nmcli dev | grep tun0 | cut -f3 | grep " connecté" &>/dev/null
then
echo "<span foreground=\"#99CC99\">█</span>"
else
echo "<span foreground=\"#515151\">█</span>"
fi