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
2019-01-21 08:16:41 +01:00
echo "<span foreground=\"#99CC99\">▣</span>"
else
2019-01-21 08:16:41 +01:00
echo "<span foreground=\"#515151\">▣</span>"
fi