Search faster. Launch smarter.
Demo · Quick start · Installation · Usage · Performance · Compatibility · Roadmap
A Linux application launcher with a shared Rust catalog and search engine. Launch desktop applications, find indexed files, or pipe choices into a menu. GTK is the default backend. Native Wayland is experimental.
Capture your own screenshots or demo on Hyprland
After installation, run these from your Wayland session.
rofi-rs -show drun
rofi-rs --backend native -show drun
rofi-rs --backend native -show files- Applications uses XDG desktop entries, launch history, and prepared prefix search.
- Files uses plocate with an 80 ms input debounce, cancellation of stale searches, and up to 100 matches. Filename matches come first. Results show the filename, parent directory and file type icon. Enter opens the selection through
xdg-open. - Menus supports a native single-selection dmenu subset for scripts. The default
-dmenucommand delegates to system Rofi.
Build from source with Rust 1.97 or later. Both frontends need a Wayland compositor with layer-shell support. Arch Linux is the tested distribution.
On Arch Linux, install the build dependencies.
sudo pacman -S --needed base-devel pkgconf gtk4 gtk4-layer-shell glib2 \
wayland wayland-protocols libxkbcommon xkeyboard-config cairo pango gdk-pixbuf2Install plocate and xdg-utils for file mode, and use your distribution’s indexing service to keep the database current. Install Rofi at /usr/bin/rofi for default dmenu delegation.
Clone https://github.com/45IF/rofi-rs.git or extract a tagged source archive. From its root, build both frontends.
cargo build --manifest-path rust/app/Cargo.toml --release --locked --bins
cargo build --manifest-path rust/native-wayland/Cargo.toml --release --locked
prefix="$HOME/.local/opt/rofi-rs-v0.1.0"
install -d "$prefix"
install -m 755 rust/app/target/release/rofi-rs rust/app/target/release/rofi-rs-drun \
rust/native-wayland/target/release/rofi-rs-native "$prefix/"
export PATH="$prefix:$PATH"
rofi-rs --versionThe three executables must live together. The PATH export applies to the current shell. Use the full path in compositor shortcuts. Run ./release/check.sh with Python and rustfmt installed for the release checks.
| Command | Behavior |
|---|---|
rofi-rs -show drun |
GTK application launcher |
rofi-rs -show files |
GTK file search |
rofi-rs --backend native -show drun |
Native Wayland application launcher |
rofi-rs --backend native -show files |
Native Wayland file search |
rofi-rs --backend auto -show drun |
Try native and fall back to GTK if native startup is unavailable |
rofi-rs -dmenu |
Run system Rofi dmenu with the supplied arguments and streams |
rofi-rs --backend native -dmenu |
Run the native single-selection menu |
Set ROFI_RS_BACKEND=gtk|native|auto to choose a default for a shell or session. An explicit --backend takes precedence. Auto selection also works for file mode. Native opens one-shot windows and exits on Escape. GTK also supports resident application mode.
Add this to a Hyprland Lua keybindings file to open native file search with Alt+Space.
hl.bind("ALT + Space", hl.dsp.exec_cmd([["$HOME/.local/opt/rofi-rs-v0.1.0/rofi-rs" --backend native -show files]]))printf '%s\n' 'Open notes' 'Open browser' |
rofi-rs --backend native -dmenu -i -no-custom -p 'Choose an action'The native menu reads finite UTF-8 input to EOF. It supports a prompt, case-insensitive filtering, initial row selection, formatted output and custom entry control. Enter accepts the selection and writes to stdout. Escape exits 1. Native dmenu options and output formats
In the December 5 matched run, the native frontend used 39.3% less median time to the populated catalog and 68.1% less median search CPU time than system Rofi. Native idle PSS was 8.83 MiB. Median steady-state key-to-presentation latency was comparable at 30.77 ms native and 30.65 ms system Rofi.
| Median | System Rofi 2.1.2 | GTK rofi-rs | Native Wayland |
|---|---|---|---|
| First presented content | 178.82 ms | 335.13 ms | 172.62 ms |
| First presented catalog | 284.59 ms | 335.13 ms | 172.62 ms |
| Subsequent input to presentation | 30.65 ms | 32.05 ms | 30.77 ms |
| Idle PSS | 10.01 MiB | 18.44 MiB | 8.83 MiB |
| Search sequence CPU time | 124.20 ms | 69.90 ms | 39.68 ms |
Native showed the populated catalog sooner in 51 of 60 pairs with system Rofi. System Rofi showed first visible content sooner in 47 of 60 pairs with native. Startup split into two groups. Only 30 of 60 native launches reached the catalog within the 195 ms target, and native catalog P95 was 224.90 ms.
These figures describe the recorded binaries on a ThinkPad T14 Gen 1 with an Intel Core i5-10210U, Arch Linux, Hyprland 0.57.2 and a 60 Hz output. Six warm-up triplets preceded 60 measured triplets in balanced execution order. Each client used the same 257-entry catalog, Noto Sans 12 pt, icon markers and 420×318 scale-1 buffers. Frame timing used compositor presentation feedback.
Full results, raw data and limitations · Benchmark method · Reproduce the matched run · Prototype baseline
rofi-rs is independent of upstream Rofi. GTK loads six literal colors from a Rofi palette file. Native uses a built-in theme, keyboard navigation, one seat and compositor-controlled placement. Rasi layouts, X11, explicit monitor selection, custom bindings, Rofi plugins and several built-in modes and dmenu extensions are outside the supported interface. Live testing across IMEs, mixed-DPI displays and compositors is ongoing.
Compatibility matrix · Native frontend audit
- Validate keyboard repeat, international layouts, IME, scaling, monitor changes, file search and dmenu in more live sessions.
- Investigate the two startup groups with interleaved builds and per-sample CPU frequency telemetry. Track the 195 ms catalog target across the distribution.
- Expand dmenu coverage against documented upstream semantics. Reassess the default frontend with accessibility and compositor coverage in hand.
MIT license · Third-party notices · Contributing · Changelog · Release audit


