ironbar
ironbar copied to clipboard
[Clipboard] Custom handlers / Auto-close with notification
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
- Auto-close popups when an action is selected, such as when choosing something to copy in the clipboard popup.
- 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.
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.
close_on_copy sounds good to me, thanks