Closed antoniocorbi closed 7 months ago
Forgot to mention OS (nixos 23.11) and eww version: 0.4.0
Yeaa i see where the confusion is coming from - the issue here is that ewe evaluates the expression first, before replacing the {} with the "up" or "down" string, so whats actually happening is that youre comparing an empty json object to a string...
I don't think this will be avoidable any time soon, not before we get some form of lamdas
Thx Elkowar!
Yep, that's what I thought. Meanwhile I'm using something similar to the shell-script proposed.
Thanks for your work in eww!
Checklist before submitting an issue
Description of the bug
When implementing volume-up/down scrolling in a eventbox like this:
It always
produces
the 'else' string, but if implement :onscroll like this it works:Reproducing the issue
No response
Expected behaviour
The first implementation proposed for :onscroll should work.
Additional context
No response