Hyprland: eww configs in the wiki get slow over time

I use eww with hyprland. I have a workspaces widget on the upper left side of the bar. I have used the script provided in the hyprland wiki to make it work.

And, it does work, but it gets slow over time. As soon as the bar opens, it works instantly. I can instantly change workspaces and the corresponding workspace gets highlighted at the exact same time I press the button. I can also click on it and they get highlighted instantly. But after some time, it gets slower and slower.

After a while, I change workspace and it’s not until maybe half a second or even a full second later that the corresponding workspace gets highlighted. And the click is messed up too. It gets the same delay, only it’s worse since with keybinds at least I can still change workspaces instantly, it just takes a while for eww to catch up, but with the mouse, I need to wait for eww to catch up to switch to another workspace, making it really sluggish.

If I run eww reload, it fixes itself, and the workspace switcher works instantly once again. I don’t know how to fix this.

I tested the get current workspace script manually, and it does seem to output instantly, so I don’t know what may be the issue.

Here is my eww config.

https://user-images.githubusercontent.com/41462117/220809300-44235135-5c80-4283-b4e2-f9751ab3b40e.mp4

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

On close inspection, it appears to be eww itself what gets slow, since the clock also gets wildy out of sync.