rofi-actions(5) (NAME) rofi-actions - rofi (DESCRIPTION) rofi . . (USAGE) rofi : -on-selection-changed cmd . {entry} . -on-entry-accepted cmd . {entry} . -on-mode-changed cmd ( drun,window,ssh...) . -on-menu-canceled cmd . -on-menu-error cmd ( rofi -e "error message"). {error} . -on-screenshot-taken cmd rofi . {path} . (Example usage) rofi: rofi -on-selection-changed "/path/to/select.sh {entry}" \ -on-entry-accepted "/path/to/accept.sh {entry}" \ -on-menu-canceled "/path/to/exit.sh" \ -on-mode-changed "/path/to/change.sh" \ -on-menu-error "/path/to/error.sh {error}" \ -on-screenshot-taken "/path/to/camera.sh {path}" \ -show drun rofi: configuration { on-selection-changed: "/path/to/select.sh {entry}"; on-entry-accepted: "/path/to/accept.sh {entry}"; on-menu-canceled: "/path/to/exit.sh"; on-mode-changed: "/path/to/change.sh"; on-menu-error: "/path/to/error.sh {error}"; on-screenshot-taken: "/path/to/camera.sh {path}"; } (Play sound effects) bash aplay : #!/bin/bash coproc aplay -q $HOME/Music/selecting_an_item.wav coproc rofi . (Read aloud) bash espeak : #!/bin/bash killall espeak echo "selected: $@" | espeak rofi rofi-actions(5)