Rename iproute to iproute2

This commit is contained in:
Jakob Lechner 2024-11-28 00:54:37 +01:00
parent 2ea65edb28
commit 8e88a26cf9

View file

@ -180,7 +180,7 @@ in
"custom/vpn" = {
interval = 10;
exec = pkgs.writeShellScript "vpn-state" ''
${pkgs.iproute}/bin/ip -j link \
${pkgs.iproute2}/bin/ip -j link \
| ${pkgs.jq}/bin/jq --unbuffered --compact-output '
[[.[].ifname | select(. | startswith("mullvad"))][] | split("-")[1] + " 󰌾${thinsp}"] as $conns
| { text: ($conns[0] // ""), class: (if $conns | length > 0 then "connected" else "disconnected" end) }'