rofi Launcher and menu
Light · Postcard
102 × 152 mm · PDF
Dark · Postcard
102 × 152 mm · PDF
Ink saver · Postcard
102 × 152 mm · PDF
Light · A4 landscape
297 × 210 mm · PDF
Dark · A4 landscape
297 × 210 mm · PDF
Ink saver · A4 landscape
297 × 210 mm · PDF
Light · A3 landscape
420 × 297 mm · PDF
Dark · A3 landscape
420 × 297 mm · PDF
Ink saver · A3 landscape
420 × 297 mm · PDF
Start here
rofi -show drunrofi -show runrofi -show window
rofi -show sshrofi -show combi
rofi -modes "drun,run"
rofi -dmenurofi -dump-config
Concepts
- Source mode or stdin
- Filter list -matching
- Result action or stdout
Modes
rofi -show drunrofi -show runrofi -show window
rofi -show sshrofi -show combi -modes "window,drun"
rofi -show filebrowser
rofi -show keysrofi -modes "window,drun,run" -show window
rofi -show <name> -modes
"<name>:<script>"
In the prompt
EnterEscCtrl+Tab / Shift+Right
Shift+LeftCtrl+EnterShift+EnterShift+Delete
Ctrl+n / Ctrl+p
Tab / Shift+Tab
Ctrl+SpaceCtrl+w / Ctrl+u
Ctrl+a / Ctrl+e
Ctrl+lCtrl+Up / Ctrl+Down
`Alt+`Alt+1 .. Alt+9
Super+1 .. Super+9
dmenu mode
<cmd> | rofi -dmenu
-p "<prompt>"
-i-l <n>-format <s|i|d|q|f>
-mesg "<text>"
-sep "<char>"
-only-match-no-custom-multi-select-select <string>
-filter <text>
-a <rows> / -u <rows>
-password-markup-rows-input <file>
-dumpMatching & behaviour
-matching <method>
-sort / -no-sort
-sorting-method <levenshtein|fzf>
-show-icons-icon-theme <name>
-normal-window-monitor <n>
-e "<msg>"
-no-lazy-grabThemes & config
-theme <name|file.rasi>
-theme-str '<rasi>'
rofi -dump-theme
rofi -dump-config
-config <file>
~/.config/rofi/config.rasi
configuration { modes: "drun,run,window"; show-icons: true; matching: "fuzzy";}
Recipes
choice=$(printf 'lock\nreboot\npoweroff' | rofi -dmenu -i -p power)case "$choice" in reboot) systemctl reboot ;; poweroff) systemctl poweroff ;;esac
find ~/Documents -type f | rofi -dmenu -i -l 12 -p open \ | xargs -r -d '\n' xdg-open
printf 'no\nyes\n' | rofi -dmenu -mesg 'Delete all logs?' -p sure \ | grep -qx yes && rm -f ~/logs/*
# i3 / sway configbindsym $mod+d exec rofi -show drunbindsym $mod+Tab exec rofi -show window



