Remove vpn widget

This commit is contained in:
Jakob Lechner 2025-03-13 04:10:26 +01:00
parent d1f2e8d10b
commit a4c4b3ef32

View file

@ -44,7 +44,6 @@ in
"backlight"
"pulseaudio"
"network"
"custom/vpn"
"memory"
"cpu"
"temperature"
@ -145,18 +144,6 @@ in
tooltip = false;
on-click-right = "${config.programs.alacritty.package}/bin/alacritty -e ${pkgs.networkmanager}/bin/nmtui";
};
"custom/vpn" = {
interval = 10;
exec = pkgs.writeShellScript "vpn-state" ''
${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) }'
'';
return-type = "json";
format = "{}";
tooltip = false;
};
memory = {
interval = 2;
format = "{:2}% 󰍛 ";
@ -358,11 +345,6 @@ in
color: @base01
}
#custom-vpn {
background-color: @base0D;
color: @base01
}
#network.disconnected {
background-color: @base08;
}