Skip to content

Launcher

github-actions[bot] edited this page Dec 5, 2026 · 1 revision

Launcher

The launcher (alpheus-launch, usually bound to Mod+Space) lists apps, commands, windows and more. This page covers three things people change first: the terminal it uses, the keys that switch its modes, and a list of your own that it searches.

Another terminal

# ~/.config/alpheus/launcher.toml
# Run terminal apps and typed commands in kitty instead of foot.
terminal      = ["kitty", "-e"]
terminal_hold = ["kitty", "--hold", "-e"]

terminal runs apps that ask for a terminal (Terminal=true in their desktop entry). terminal_hold runs a command or typed text when you press Enter: the terminal stays open so you can read the output. They are separate keys, so switching terminal means setting both. A command is an argv list, never a shell: the program first, then its arguments.

Other mode prefixes

# ~/.config/alpheus/launcher.toml
# Reach the commands mode with "!" and the windows mode with "win ".
[prefixes]
commands = "!"
windows  = "win "

Typing ! at the start of the query switches to the commands in your $PATH; win (with its space) switches to the windows. A prefix may not start with a space, and none may be the start of another (! and !! clash). The tools prefix (/ by default) is in the same table; tools = "" turns it off.

A list of your own

# ~/.config/alpheus/launcher.toml
# Search a list of bookmarks next to the apps; Enter opens the chosen line.
[[sources]]
name = "Bookmarks"
list = ["sh", "-c", "cat ~/.config/alpheus/bookmarks.txt"]
run  = ["xdg-open", "{line}"]

A source is a script whose lines the launcher searches next to the apps. list runs once each time the launcher opens, after the apps are listed: it has 1 second, and alpheus keeps at most 2,000 lines (256 KiB). run runs when a line is chosen: {line} must appear exactly once, as one whole element of run, and it becomes the line as one argument, never through a shell. Without a shell, ~ is not expanded, which is why the example's list goes through sh -c. You can have at most 8 sources, each with a different name.

Applying it

Nothing to restart: launcher.toml is read each time the launcher opens, and nothing is kept while it is closed.

If it does not work

An unknown key, a prefix that clashes with another, a {line} missing from run, a ninth source: any of them makes the whole launcher.toml invalid. The launcher still opens, with every default (so the old terminal and prefixes are back) and the daemon's standard error holds one warning. See Getting started. The result count, the history size and the search engine of the ? prefix are in the same file's reference.

Reference: launcher.toml.

Clone this wiki locally