open "https://google.com/search?q=hello"
open "https://google.com/search?q=world"
open "https://google.com/search?q=hoge"
open "https://google.com/search?q=fuga"
The following example copies the result to the clipboard upon pressing the key combination defined by -kb-accept-custom (by default Control+Return). NOTE: {result} should be quoted since it may contain characters that your shell would otherwise interpret:
rofi -show calc -modi calc -no-show-match -no-sort -calc-command "echo -n '{result}' | xclip"
https://github.com/svenstaro/rofi-calc#advanced-usage