notify-send from libnotify and a running desktop notification service.
Try both actions
Save this asmessages.json. The item’s primary action opens the presets submenu. Its secondary action opens a text box titled Write a message.
messages.json
- Left-click the item, then select Ready for review. ReCircles supplies that label to the shared command and your desktop displays the notification.
- Reopen the menu and right-click the item (or select it and press Shift+Enter). Edit the text and choose Done. Cancel discards it.
submenus object. From any level, use the exact key, such as presets, to enter it. For a short one-off list, you can put options and command together inside a click action.
Pass the selected value
ReCircles runs commands throughsh -c. The value is the submitted text in an input box, the chosen option in a list, or the clicked item’s label for an ordinary item action. These two forms both pass one value to notify-send.
For a menu that always starts with text entry, save this as
quick-note.json and register it with recircles add quick-note ./quick-note.json. Running recircles --run quick-note opens the input box directly.
quick-note.json
Refresh the menu after a command
A plain command launches and closes ReCircles. Setreload to true when you want to stay in the current menu. A reload action can also stand alone. This complete menu lets you edit the installed JSON while the menu is open, then select Reload menu to see the changes.
refreshable.json
on_open on a menu or named submenu to run a command when you enter it. A refresh reads the installed JSON file from disk after the command succeeds. If a script generates menu entries, have it update that file. Printing JSON to standard output does not update the menu.
When an action has both command and submenu, ReCircles runs the action command, runs the destination’s on_open if present, then reads the menu file and displays the destination. A reload follows the same sequence using the current section’s on_open. Enable loading_animation to show a loading indicator while waiting.
