[GH-ISSUE #247] [Launcher] Right click menu / Custom actions #5731

Open
opened 2026-05-23 01:52:45 +01:00 by JakeStanger · 7 comments
Owner

Originally created by @donovanglover on GitHub (Jul 18, 2023).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/247

Is your feature request related to a problem? Please describe.
It would be cool if right clicking on an application opened a popup that lets you do things with that application similar to nwg-dock-hyprland.

Describe the solution you'd like
Ideally users would able to customize their own menu of actions like "right click > close window" or "right click > move window to empty workspace". Should also work when multiple windows of the same application exist.

Describe alternatives you've considered
Right click can pass the window id to a user's custom script that could have multiple options with dmenu.

Additional context
Image of nwg-dock-hyprland

Originally created by @donovanglover on GitHub (Jul 18, 2023). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/247 **Is your feature request related to a problem? Please describe.** It would be cool if right clicking on an application opened a popup that lets you do things with that application similar to [`nwg-dock-hyprland`](https://github.com/nwg-piotr/nwg-dock-hyprland). **Describe the solution you'd like** Ideally users would able to customize their own menu of actions like "right click > close window" or "right click > move window to empty workspace". Should also work when multiple windows of the same application exist. **Describe alternatives you've considered** Right click can pass the window id to a user's custom script that could have multiple options with dmenu. **Additional context** ![Image of nwg-dock-hyprland](https://user-images.githubusercontent.com/20579136/233751391-97f8f685-55ae-4078-badf-b8c3d7c41ab4.png)
Author
Owner

@JakeStanger commented on GitHub (Jul 18, 2023):

Definitely on board with this. It's something I've thought about for a long time but haven't got round to.

<!-- gh-comment-id:1640484707 --> @JakeStanger commented on GitHub (Jul 18, 2023): Definitely on board with this. It's something I've thought about for a long time but haven't got round to.
Author
Owner

@salahoued commented on GitHub (Feb 21, 2024):

Hi there,
I've been "playing around" with ironbar in the last few days, (using labwc).
And indeed having a right click menu would we great, and I don't know how much difficult it would be to implement, because having only a left-click -> focus the app is really "lacking".
It would also be good to have other actions like minimize, maximize..., or even run some script, paired with some mouse event middle click scroll up and down.
Thanks for your work and understanding

<!-- gh-comment-id:1957809882 --> @salahoued commented on GitHub (Feb 21, 2024): Hi there, I've been "playing around" with ironbar in the last few days, (using labwc). And indeed having a right click menu would we great, and I don't know how much difficult it would be to implement, because having only a left-click -> focus the app is really "lacking". It would also be good to have other actions like minimize, maximize..., or even run some script, paired with some mouse event middle click scroll up and down. Thanks for your work and understanding
Author
Owner

@yavko commented on GitHub (Feb 21, 2024):

Hi there,
I've been "playing around" with ironbar in the last few days, (using labwc).
And indeed having a right click menu would we great, and I don't know how much difficult it would be to implement, because having only a left-click -> focus the app is really "lacking".
It would also be good to have other actions like minimize, maximize..., or even run some script, paired with some mouse event middle click scroll up and down.
Thanks for your work and understanding

I don't think some of these have been implemented because they are barely used in tiling compositors, however I'm pretty sure to implement this, it would require a specific implementation for labwc, unless there is some Wayland protocol that allows you to minimize and maximize other windows.

<!-- gh-comment-id:1958006569 --> @yavko commented on GitHub (Feb 21, 2024): > Hi there, > I've been "playing around" with ironbar in the last few days, (using labwc). > And indeed having a right click menu would we great, and I don't know how much difficult it would be to implement, because having only a left-click -> focus the app is really "lacking". > It would also be good to have other actions like minimize, maximize..., or even run some script, paired with some mouse event middle click scroll up and down. > Thanks for your work and understanding I don't think some of these have been implemented because they are barely used in tiling compositors, however I'm pretty sure to implement this, it would require a specific implementation for labwc, unless there is some Wayland protocol that allows you to minimize and maximize other windows.
Author
Owner

@salahoued commented on GitHub (Feb 21, 2024):

I don't think some of these have been implemented because they are barely used in tiling compositors, however I'm pretty sure to implement this, it would require a specific implementation for labwc, unless there is some Wayland protocol that allows you to minimize and maximize other windows.

Thank you for your replay, And I'm sorry for my lack of information (it's very recently that I made the plunge from openbox/X11 to labwc/wayland)
But I believe there is something, because I kinda hacked something similar in eww bar with tools like lswt and wlrctl.

<!-- gh-comment-id:1958068432 --> @salahoued commented on GitHub (Feb 21, 2024): > > I don't think some of these have been implemented because they are barely used in tiling compositors, however I'm pretty sure to implement this, it would require a specific implementation for labwc, unless there is some Wayland protocol that allows you to minimize and maximize other windows. Thank you for your replay, And I'm sorry for my lack of information (it's very recently that I made the plunge from openbox/X11 to labwc/wayland) But I believe there is something, because I kinda hacked something similar in **eww** bar with tools like [_lswt_](https://sr.ht/~leon_plickat/lswt/) and [_wlrctl_](https://git.sr.ht/~brocellous/wlrctl).
Author
Owner

@JakeStanger commented on GitHub (Feb 21, 2024):

Custom scripted options is a nifty idea.

The standard minimise/maximise/fullscreen controls should actually be very easy to implement as its part of wlr foreign toplevel management, which is what the launcher is built on already

https://wayland.app/protocols/wlr-foreign-toplevel-management-unstable-v1

<!-- gh-comment-id:1958081675 --> @JakeStanger commented on GitHub (Feb 21, 2024): Custom scripted options is a nifty idea. The standard minimise/maximise/fullscreen controls should actually be very easy to implement as its part of wlr foreign toplevel management, which is what the launcher is built on already https://wayland.app/protocols/wlr-foreign-toplevel-management-unstable-v1
Author
Owner

@salahoued commented on GitHub (Feb 21, 2024):

Custom scripted options is a nifty idea.

The standard minimise/maximise/fullscreen controls should actually be very easy to implement as its part of wlr foreign toplevel management, which is what the launcher is built on already

https://wayland.app/protocols/wlr-foreign-toplevel-management-unstable-v1

If anything I thank you for the link it was very informative and easy to unerstand, Good job good sir.

<!-- gh-comment-id:1958099493 --> @salahoued commented on GitHub (Feb 21, 2024): > Custom scripted options is a nifty idea. > > The standard minimise/maximise/fullscreen controls should actually be very easy to implement as its part of wlr foreign toplevel management, which is what the launcher is built on already > > https://wayland.app/protocols/wlr-foreign-toplevel-management-unstable-v1 If anything I thank you for the link it was very informative and easy to unerstand, Good job good sir.
Author
Owner

@Diax170 commented on GitHub (Dec 23, 2025):

hi, I think it would also be nice to be able to rebind mouse actions, for example I'd like middle clicking to close a window instead of opening a new one or shift+left click to open a new window

you could have actions like open, close, minimize, maximize, fullscreen, etc.

<!-- gh-comment-id:3687992381 --> @Diax170 commented on GitHub (Dec 23, 2025): hi, I think it would also be nice to be able to rebind mouse actions, for example I'd like middle clicking to close a window instead of opening a new one or shift+left click to open a new window you could have actions like open, close, minimize, maximize, fullscreen, etc.
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#5731
No description provided.