blob: 217198954fea902893f0bf3c7ee96bd57dc1fa8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{
pkgs,
lib,
config,
}:
# VPN - Just indicates if VPN is connected with openvpn
with config.scheme.withHashtag;
{
type = "custom/script";
exec-if = "${lib.getExe config.programs.zsh.package} -c '${lib.getExe' pkgs.iproute2 "ip"} a | ${lib.getExe pkgs.gnugrep} -q tun0'";
exec = "echo VPN";
interval = 5;
format = "%{T2}%{F${base03}} %{F-}%{T-} <label>";
label = "%output%";
}
|