Basic rofi custom modi script template in bash
rofi -modi "<name>:<path/to/script>"rofi -modi "<name>:<path/to/script>" -show <name><name> can contain spaces, but it must be enclosed in quotes when used with -show
rofi -modi "<modiname>:<path/to/script>" -show <modiname>
rofi -modi "<modi name>:<path/to/script>" -show "<modi name>"- Run rofi without any arguments
- if (no arguments given)
- then {print options to stdout, separated by newlines;
rofi re-launches with the options now printed to stdout} - else {run command(s) for option given as first given argument}
Example script used to change the container layout in the i3 window manager