cdown / clipmenu

Clipboard management using dmenu
MIT License
1.14k stars 91 forks source link

Improve launcher detection, and support a "custom" launcher type #202

Closed tomeon closed 7 months ago

tomeon commented 1 year ago

Marked as a draft because it depends on changes from #201.

Summary of changes:

  1. Introduce support for a custom launcher type that exposes an interface for the user to dynamically select a "real" launcher implementation like dmenu or fzf and execute the selected launcher with appropriate arguments.
  2. Detect when clipmenu is being run as a rofi script by checking for the presence of the ROFI_RETV environment variable.
  3. Document the behavior that clipmenu expects from a launcher.
  4. Document how to select a launcher.

Note that this PR includes a few breaking changes, documented in the commits that introduced them:

Thanks for your consideration!

cdown commented 7 months ago

Sorry for the delay looking at this, I didn't have much time for clipmenu again until recently. clipmenu is now in C, so closing since this applies to the old bash version. Thanks for your work on this, though!

(note: custom launchers are generally better supported in clipmenu 7 now)