dotfiles/.i3blocks/vpn
2019-01-21 08:16:41 +01:00

8 lines
189 B
Bash
Executable file

#!/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