fix: waybar vpn indicator not displaying

This commit is contained in:
Swarsel 2024-08-10 17:13:37 +02:00
parent 4c94778364
commit 560bc48259
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
4 changed files with 6 additions and 2 deletions

View file

@ -4753,6 +4753,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
"mpris"
"custom/left-arrow-light"
"network"
"custom/vpn"
"custom/left-arrow-dark"
"pulseaudio"
"custom/left-arrow-light"
@ -4811,6 +4812,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
"mpris"
"custom/left-arrow-light"
"network"
"custom/vpn"
"custom/left-arrow-dark"
"pulseaudio"
"custom/left-arrow-light"
@ -7804,7 +7806,7 @@ The rest of this configuration is found here:
};
"custom/vpn" = {
format = "VPN ";
format = "()";
exec = "echo '{\"class\": \"connected\"}'";
exec-if = "test -d /proc/sys/net/ipv4/conf/tun0";
return-type = "json";

View file

@ -14,6 +14,7 @@
"mpris"
"custom/left-arrow-light"
"network"
"custom/vpn"
"custom/left-arrow-dark"
"pulseaudio"
"custom/left-arrow-light"

View file

@ -17,6 +17,7 @@ in
"mpris"
"custom/left-arrow-light"
"network"
"custom/vpn"
"custom/left-arrow-dark"
"pulseaudio"
"custom/left-arrow-light"

View file

@ -175,7 +175,7 @@
};
"custom/vpn" = {
format = "VPN ";
format = "()";
exec = "echo '{\"class\": \"connected\"}'";
exec-if = "test -d /proc/sys/net/ipv4/conf/tun0";
return-type = "json";