[GH-ISSUE #70] Support for onhover Module-level options #8471

Closed
opened 2026-05-23 03:52:16 +01:00 by JakeStanger · 1 comment
Owner

Originally created by @JustSimplyKyle on GitHub (Feb 9, 2023).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/70

Is your feature request related to a problem? Please describe.
I could barely script this using hyprctl cursorpos but it's just too ugly and spamming sockets generally isn't a good idea.

Describe the solution you'd like
More specifically, onhover and onhoverlost. Using script [oneshot] is fine, but I would like to propose an alternate solution.
Add support for variables, like eww's defvar
image
this would reduce the required scripting to make it work. Without this, I would have to use external scripts to save the state into a lock, which works, but get tedious real quickly.
Although this feature is probably out of scope to this issue anyway

Originally created by @JustSimplyKyle on GitHub (Feb 9, 2023). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/70 **Is your feature request related to a problem? Please describe.** I could *barely* script this using `hyprctl cursorpos` but it's just too ugly and spamming sockets generally isn't a good idea. **Describe the solution you'd like** More specifically, `onhover` and `onhoverlost`. Using `script [oneshot]` is fine, but I would like to propose an alternate solution. Add support for variables, like eww's defvar ![image](https://user-images.githubusercontent.com/68589851/217831302-977fe422-3107-49f7-9a5f-9edfdcdc310e.png) this would reduce the required scripting to make it work. Without this, I would have to use external scripts to save the state into a lock, which works, but get tedious real quickly. Although this feature is probably out of scope to this issue anyway
Author
Owner

@JakeStanger commented on GitHub (Feb 9, 2023):

Adding mouse enter/exit events should be very straightforward, so happy to do that.

Eww style variables is something that could be considered further down the line, but they'd need to be discussed and scoped out in more detail (including how they'd integrate with the existing systems). Feel free to open a dedicated issue/discussion for those.

<!-- gh-comment-id:1424706490 --> @JakeStanger commented on GitHub (Feb 9, 2023): Adding mouse enter/exit events should be very straightforward, so happy to do that. Eww style variables is something that could be considered further down the line, but they'd need to be discussed and scoped out in more detail (including how they'd integrate with the existing systems). Feel free to open a dedicated issue/discussion for those.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#8471
No description provided.