let's try with ripgrep

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2025-08-29 00:21:37 +02:00
parent 20d700ba61
commit 5b7c100cac
+3 -3
View File
@@ -43,10 +43,10 @@
interval = 3; interval = 3;
format = "{}"; format = "{}";
exec = '' exec = ''
if ip add show | grep -qF "proton"; then if ip add show | ${pkgs.ripgrep}/bin/rg -qF "proton"; then
echo '{"text":"󰖂 VPN On","class":"vpn-on"}' echo '{"text":"󰖂 VPN On","class":"vpn-on"}'
else else
echo '{"text":"󰖂 VPN Off","class":"vpn-off"}' echo '{"text":"󰖂 VPN Off","class":"vpn-off"}'
fi fi
''; '';
return-type = "json"; return-type = "json";