Skip to content
chmouelPublic

About

A macOS Alfred alike application launcher for Wayland windows manager in Rust

Topics

Resources

Stars

123 stars

Watchers

1 watching

Forks

Repository files navigation

Raffi logo

Raffi - A fast rust launcher on Wayland

Release CI Crates.io AUR Docs License

Documentation · Recipes · Releases · Issues · Screenshots

Raffi with the preview pane open

Raffi is a fast, keyboard-driven launcher for Wayland written in Rust, inspired by Alfred and Raycast on macOS. Bind it to a shortcut and start typing: with no setup at all, one search box finds your apps, open windows, browser tabs, bookmarks, passwords, files, snippets, and clipboard history, ranking recent picks first and offering fallback actions like web search when nothing matches. You do not need a background daemon to use it. Running the optional raffi --server keeps the window about a third faster to open, warms caches in the background, and records your clipboard history.

Built-in tools cover most daily desktop tasks out of the box. Math, currency and unit conversions, colors, and world clocks answer right in the list as you type. You can browse files with inline previews for code, images, videos, and PDFs; switch windows on Sway, Hyprland, or niri; control audio, media, Bluetooth, and power actions; pull logins from pass or Bitwarden; and search Slack. The clipboard history searches text inside screenshots with OCR, expires one-time codes, ignores password managers, and saves any entry as a text snippet that pastes straight into your active window with dynamic placeholders like today's date.

When you want to make Raffi yours, everything lives in plain YAML with editor autocomplete via JSON Schema. You can add custom commands, inline scripts, conditional entries that adapt to whichever machine you are on, web searches, and Alfred-compatible script filters with rich previews and action menus. Bind extra shortcuts to jump straight into any mode (such as Super+V for clipboard history), pick from built-in themes, or use Fuzzel as the frontend.

Installation

Install from your package manager, Cargo, or GitHub releases (see the installation guide to build from source):

# Arch Linux (AUR)
yay -S raffi-bin

# Nix
nix-shell -p raffi

# Homebrew / Linuxbrew
brew tap chmouel/raffi https://github.com/chmouel/raffi
brew install raffi

# Cargo
cargo install raffi

Quick Start

Bind raffi to a key in your compositor (and optionally bind a second key like raffi -i "clip " to open clipboard history directly):

# Sway (~/.config/sway/config)
bindsym Mod4+Space exec raffi
-- Hyprland (Lua)
hl.bind("SUPER + R", hl.dsp.exec_cmd("raffi"))
// niri (~/.config/niri/config.kdl)
binds {
    Mod+R { spawn "raffi"; }
}

Raffi works with no config file. When you are ready to customize it, drop settings in ~/.config/raffi/raffi.yaml and your own commands in ~/.config/raffi/launchers.yaml, or copy a ready-made setup from the recipes and configuration guide.

Screenshots

Search and Recent Picks

Main view with launchers and a recently picked demo snippet

One search listing a launcher and matching demo windows

Main view narrowed to Launchers with Ctrl+Tab

A demo installed app and its private-window desktop action

Desktop and Utilities

Window switcher with demo application and workspace details

Typed command ready to run in a terminal

Audio outputs with demo headphones selected

Typed output volume of 40 percent

Media playback controls and demo track details

Demo Bluetooth devices with connection and battery details

Session and power commands

Disposable demo worker's process details and signal actions

Calculator with expression preview and number bases

Currency converter with multi-currency preview

Unit conversion from kilometres per hour to miles per hour

Color conversion with swatches and CSS formats

Developer encoding and hashing tools

Time conversion between London and Tokyo

Clipboard and Passwords

Demo clipboard history with multiline text preview

Fictional password-store entries without decrypted secrets

Demo Bitwarden logins with public entry details

Files and Previews

File browser with directory preview

File browser source code preview

File browser image preview

File browser image preview scrolled to file details

File browser showing hidden files

Bundled file previewer highlighting demo Python source

File browser rendering a demo PDF page

File-only listing sorted by modification time

Search, Web, Help, and Scripts

Text snippets with expanded content preview

Text snippet with expanded dynamic placeholders and raw template

Emoji picker with Unicode and glyph preview

Web search with resolved URL preview

Browser tabs with site icons and a page preview

Browser tabs setup steps when no browser is connected

Bookmarks toolbar folder with a bookmark's details in the preview

Browser history rows with site, profile and visit time

Configured fallback search results and preview

Keyword suggestion while typing

Keyword and shortcut help list

Keyboard shortcut help filtered to the preview shortcuts

Inline launcher script shown in the preview pane

Timezone script filter with ANSI-formatted preview

Pull request script filter with CI status and details

Herdr demo workspace, session and pane tree

Herdr demo agents grouped by status with terminal preview

Themes

Built-in light theme

Catppuccin Mocha theme

Nord theme

Gruvbox Dark theme

Solarized Light theme

Tokyo Night theme

Contributing

Bug reports and pull requests are welcome on GitHub.

License

Released under the Apache 2.0 License.

Author

Sponsor

Chmouel Boudjnah · Fediverse · Twitter · Blog

About

A macOS Alfred alike application launcher for Wayland windows manager in Rust

Topics

Resources

Stars

123 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages