[GH-ISSUE #246] [Clipboard] Custom handlers / Auto-close with notification #4323

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

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

Is your feature request related to a problem? Please describe.
The clipboard is cool, however when I open it I only want to copy one thing to the clipboard. The radio buttons feel unideal since sometimes the currently selected item won't even be on your clipboard if you closed the previous window.

Describe the solution you'd like

  1. Auto-close popups when an action is selected, such as when choosing something to copy in the clipboard popup.
  2. Let the user do anything they want with the copied data, such as send a notification with it.

Describe alternatives you've considered
Not sure how convenient it is to script this, but it could work if the clipboard data is accessible somehow.

Originally created by @donovanglover on GitHub (Jul 18, 2023). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/246 **Is your feature request related to a problem? Please describe.** The clipboard is cool, however when I open it I only want to copy one thing to the clipboard. The radio buttons feel unideal since sometimes the currently selected item won't even be on your clipboard if you closed the previous window. **Describe the solution you'd like** 1. Auto-close popups when an action is selected, such as when choosing something to copy in the clipboard popup. 2. Let the user do anything they want with the copied data, such as send a notification with it. **Describe alternatives you've considered** Not sure how convenient it is to script this, but it could work if the clipboard data is accessible somehow.
Author
Owner

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

Adding a close_on_copy config option should be trivial so happy to do that.

sometimes the currently selected item won't even be on your clipboard if you closed the previous window.

This isn't true (or at least shouldn't be), since Ironbar actually copies the data and stores it internally to persist it. When you copy from Ironbar's popup, Ironbar is the the process that provides the data offer.

In regards to being able to hook scripts into the events or read the contents, I think that's out of scope of the bar. That sort of thing leans more towards a dedicated clipboard manager. For example, you could use wl-paste in watch mode, or another tool that builds on top of it.

<!-- gh-comment-id:1640508008 --> @JakeStanger commented on GitHub (Jul 18, 2023): Adding a `close_on_copy` config option should be trivial so happy to do that. > sometimes the currently selected item won't even be on your clipboard if you closed the previous window. This isn't true (or at least shouldn't be), since Ironbar actually copies the data and stores it internally to persist it. When you copy from Ironbar's popup, Ironbar is the the process that provides the data offer. In regards to being able to hook scripts into the events or read the contents, I think that's out of scope of the bar. That sort of thing leans more towards a dedicated clipboard manager. For example, you could use [wl-paste](https://github.com/bugaevc/wl-clipboard) in watch mode, or another tool that builds on top of it.
Author
Owner

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

close_on_copy sounds good to me, thanks

<!-- gh-comment-id:1640676394 --> @donovanglover commented on GitHub (Jul 18, 2023): `close_on_copy` sounds good to me, thanks
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#4323
No description provided.