Skip to content

Conversation

FakeMichau
Copy link
Contributor

_refresh_item_ui wasn't getting connected to the event, because of a typo it seems. Fixing that and removing the poll event that triggers every second lowers CPU usage. This is because calling _get_item_pixbuf every second for every icon is somewhat expensive.

With cava disabled and a fix to fabric, I'm sitting at 0% CPU usage for ax-shell at idle most of the time on my system. There might still be something that is polling every second but haven't yet figured out what that is.

@FakeMichau
Copy link
Contributor Author

FakeMichau commented Oct 12, 2025

Also #289 is trying to remove this event so watch out for that if you plan on merging. Events are the way this should be done.

Edit: Nvm, misread the diff, but I do wonder how related the issue could be

@Axenide Axenide merged commit 6143ad2 into Axenide:main Oct 18, 2025
@Axenide
Copy link
Owner

Axenide commented Oct 18, 2025

Excellent. Truly excellent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants