Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] usage of jq is not sufficient to keep a variable up to date. #1251

Open
3 tasks done
x70b1 opened this issue Dec 22, 2024 · 0 comments
Open
3 tasks done

[BUG] usage of jq is not sufficient to keep a variable up to date. #1251

x70b1 opened this issue Dec 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@x70b1
Copy link

x70b1 commented Dec 22, 2024

Checklist before submitting an issue

  • I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
  • I have specifically verified that this bug is not a common user error
  • I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)

Description of the bug

I want to read the content of a variable with the jq function. eww seems to optimize the usage. Therefore the content of the var is not updated.

As soon as I use the output of the var in a different way. It works fine and even the jq function starts to work perfect.

Reproducing the issue

Define a poll var. Print the content with jq. The output is always the initial value.

Expected behaviour

The content should update.

Additional context

(defpoll script_network_test :interval "5s"
                        :initial '{}'
    "/home/x70b1/test.sh")

.
.
.

        (label :class "unit"
               :text "${jq(script_network_test, '.')}")

Platform and environment

Hyprland, eww-git on Archlinux.

@x70b1 x70b1 added the bug Something isn't working label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant