NAME
Rofi::Script::Simple - a simpler Rofi::Script
SYNOPSIS
use Rofi::Script::Simple;
prompt "make a choice";
option foo => sub {
# code that runs when someone selects 'foo'
};
option bar => sub {
# code that runs when someone selects 'bar'
};
# displays foo and bar as rofi menu options
end_options;
EXPORTED FUNCTIONS
end_options
Call this at the end of your script after you've defined all of the options.
option
option foo => sub {
...;
};
Quickly define a menu option and an action that runs when the option is selected
prompt
Set the prompt text.