Use iproute2 instead of iproute

This commit is contained in:
Simon Bruder 2024-12-15 17:13:35 +01:00
parent 28e190025c
commit 7a554a66fa
Signed by: simon
GPG key ID: 347FF8699CDA0776

View file

@ -194,7 +194,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("mlv"))][] | sub("mlv-"; "") + " 󰌾${thinsp}"] as $conns
| { text: ($conns[0] // ""), class: (if $conns | length > 0 then "connected" else "disconnected" end) }'