Remove vpn widget
This commit is contained in:
parent
d1f2e8d10b
commit
a4c4b3ef32
1 changed files with 0 additions and 18 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue