[GH-ISSUE #1242] FR: Optional pre-GTK4 port behavior on clicking tray icons #7401

Closed
opened 2026-05-23 02:54:16 +01:00 by JakeStanger · 3 comments
Owner

Originally created by @postsolar on GitHub (Nov 20, 2025).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1242

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I really liked clicking on tray icons with LMB to open menus, as I use a touchpad so it's always physically easier to tap with one finger (= left click) than with two (= right click), especially when my left hand's fingers are on the keyboard but the thumb reaches the touchpad. Current single-click behavior is not that useful for me.

Describe the solution you'd like

A clear and concise description of what you want to happen.
The more info here about what you are trying to achieve, the better - there's likely more than one way to go about implementing a solution.

Configurable behavior of tray module for LMB/RMB (or single vs double click).

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

Originally created by @postsolar on GitHub (Nov 20, 2025). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1242 **Is your feature request related to a problem? Please describe.** > A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] I really liked clicking on tray icons with LMB to open menus, as I use a touchpad so it's always physically easier to tap with one finger (= left click) than with two (= right click), especially when my left hand's fingers are on the keyboard but the thumb reaches the touchpad. Current single-click behavior is not that useful for me. **Describe the solution you'd like** > A clear and concise description of what you want to happen. > The more info here about what you are trying to achieve, the better - there's likely more than one way to go about implementing a solution. Configurable behavior of tray module for LMB/RMB (or single vs double click). **Describe alternatives you've considered** > A clear and concise description of any alternative solutions or features you've considered. **Additional context** > Add any other context or screenshots about the feature request here.
Author
Owner

@JakeStanger commented on GitHub (Nov 20, 2025):

I think an option to swap the buttons around is easy enough. The question is whether it's presented in the config as a "swap" option, or whether on_click_left, on _click_right and on_click_middle are used with some enum variant of valid actions.

I guess in the case of the latter that would allow it to fall back to running arbitrary commands as with the module-level options of the same name.

<!-- gh-comment-id:3556977865 --> @JakeStanger commented on GitHub (Nov 20, 2025): I think an option to swap the buttons around is easy enough. The question is whether it's presented in the config as a "swap" option, or whether on_click_left, on _click_right and on_click_middle are used with some enum variant of valid actions. I guess in the case of the latter that would allow it to fall back to running arbitrary commands as with the module-level options of the same name.
Author
Owner

@postsolar commented on GitHub (Nov 21, 2025):

@JakeStanger would you also be interested in on_click_left_double alongside other enum variants?

<!-- gh-comment-id:3564050984 --> @postsolar commented on GitHub (Nov 21, 2025): @JakeStanger would you also be interested in `on_click_left_double` alongside other enum variants?
Author
Owner

@postsolar commented on GitHub (Nov 21, 2025):

I guess in the case of the latter that would allow it to fall back to running arbitrary commands as with the module-level options of the same name.

I imagine this wont be useful without also passing tray item's meta info (the name at least):

on_click_left = "if [ {item} = copyq ]; then notify-send 'copyq was left-clicked'; fi"
<!-- gh-comment-id:3564208088 --> @postsolar commented on GitHub (Nov 21, 2025): > I guess in the case of the latter that would allow it to fall back to running arbitrary commands as with the module-level options of the same name. I imagine this wont be useful without also passing tray item's meta info (the name at least): ``` on_click_left = "if [ {item} = copyq ]; then notify-send 'copyq was left-clicked'; fi" ```
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#7401
No description provided.