-
Notifications
You must be signed in to change notification settings - Fork 654
Description
Before opening a feature request
- I checked the next branch to see if the feature has already been implemented
- I searched existing reports to see if it is already requested.
What is the user problem or growth opportunity you want to see solved?
I'd like for rofi to be able to run a command or script whenever the search input changes.
I imagine a solution where each time the search input changes, a command or script is run and the output is displayed as the list entry.
then you could have this flow:
- open rofi
- write "2 + 2"
- see an entry in the list displaying "4"
- select that entry
and with some configuration - 4 is copied to the system clipboard
How do you know that this problem exists today? Why is this important?
Drawing a parallel with flow-launcher for windows (hear me out), although it serves a different purpose, rofi can cover most use cases that flow-launcher has, except specifically the calculator feature. This is something i used quite often and would like to see added to rofi, but, in the spirit of flexibility, i thought it more fitting to ask for the ability to run a command or script. That way its up to me to make the calculator thing, but i can also do stuff like rolling dice using a dice roller command or literally anything else you can do with commands. It's important for me so i can run a random number generator and do basic math i'm too lazy to open my terminal for.
Who will benefit from it?
I'd say everyone wanting to do more complex stuff with rofi. having dynamic entries which adapt to the search input.
Rofi version (rofi -v)
Version: 1.7.9+wayland1
Configuration
https://gist.github.com/Skyppex/8b5fabdfe4d13faf44a9d811ca44185a
Additional information
No response