-
Notifications
You must be signed in to change notification settings - Fork 629
mode Specs
Fabian Winter edited this page Nov 9, 2019
·
10 revisions
Apart from dmenu mode, rofi can be told to call a custom script.
If you start rofi -modi yourscript:yourscript.sh
-show yourscript, this happens:
- Rofi calls
yourscript.sh
without parameters. - Your script needs to write its choices to
stdout
, separated by line breaks (\n
). - Rofi shows these entries and allows the user to choose one.
- Your script is called again with the chosen entry as its parameter.
You can already let rofi
call your script with parameters, by starting it like this: `rofi -modi yourscript:"yourscript.sh first_parameter second_parameter".
They will also be included in the last call with the user's choice.
It is not possible to have custom keybindings in script mode. (@DaveDavenport: Correct?)
Also, multi-selection seems not to be possible in script mode. (@DaveDavenport: Correct?)