Skip to content

Launcher ​

lys-shell launcher toggles the search panel: one field and one ranked list over every source below. The shell must be running; it hosts the panel. The panel opens on the focused output, or on launcher.monitor (an unknown name is logged and the focused output used).

Bind it in your compositor. lys-wm's default config binds SUPER + Space.

ini
# sway
bindsym $mod+space exec lys-shell launcher
lua
-- Hyprland
hl.bind("SUPER + SPACE", hl.dsp.exec_cmd("lys-shell launcher"))

Sources ​

launcher.search.providers selects them.

SourceNotes
ApplicationsDesktop entries; desktop actions are in the actions panel
Windowslys-wm, Hyprland, Sway, Niri and Mango
FilesRecent files and the file index; a query starting with / or ~ lists that folder
CalculatorArithmetic (6*7, sqrt(16)), units (5 km to mi, 100 f in c, 1 GiB to MB), currencies, times and dates
SystemLock, sleep, log out, restart, shut down, through the power commands. Ending the session asks for a second Enter
SettingsPages of lys-settings, when installed
ClipboardFrom three typed letters; Clipboard History lists all. See Clipboard history
EmojiFrom two typed letters; Emoji Picker lists all
Unicode charactersFrom three typed letters (right arrow finds →); Unicode Characters lists all
BitwardenBitwarden Vault opens the vault, asking for the master password when locked
Quick links, snippetsFrom launcher.search
Browser bookmarks, historyFirefox and Chromium families. Bookmarks from two letters, history from three; Browser Bookmarks and Most Visited Sites list all
Quick togglesDo not disturb, Wi-Fi, Bluetooth, audio output, Choose Wallpaper
MediaPlay, pause and skip on the active player
CaptureScreenshots, recording, the color picker; they start once the panel has closed
ProcessesKill Process lists your processes, largest first; ending one asks for a second Enter. The compositor and the shell are not listed
Script commandsSee Script commands
Shell>command runs a command; the actions panel can run it in a terminal
WebAlways the last row: search the web for the query

With an empty field the list suggests what you use most. Picks are remembered overall and per query, so f comes to mean Firefox if you keep choosing it; a use counts half as much after two weeks. The data is in $XDG_STATE_HOME/lys-shell/launcher-frecency.json; launcher.history.enable: false turns it off.

What runs in a terminal (a Terminal=true app, a file or link whose default app is one, a script command with @lys.output terminal, the run-in-terminal and open-terminal-here actions, run and ssh) uses launcher.terminal, else $TERMINAL, else the first of foot, kitty, alacritty, wezterm, ghostty, gnome-terminal, konsole and xterm on $PATH. With none of them nothing is run: the panel stays open and says that there is no terminal emulator.

Keys ​

KeyDoes
Up, Down, Ctrl+P, Ctrl+N, Ctrl+JMove the selection
Page Up, Page DownMove by a page
EnterThe row's first action
Ctrl+EnterThe row's second action
Ctrl+KActions panel: everything the row can do, searchable
TabComplete a path or link keyword; otherwise the actions panel
Ctrl+1 … Ctrl+9Take that visible row
EscBack one level, then close
BackspaceIn an empty field, back one level
Ctrl+BackspaceForget a clipboard row
Shift+SpaceQuick Look the selected file or copied picture (the quick-look action in launcher.keybindings)
Space, in an empty fieldQuick Look, as Shift+Space

While Quick Look shows, Space, Esc or a second Shift+Space close it and the arrows move the rows beneath it; its Open button opens the file in its default app. A Markdown file's text selects with a press and drag, across blocks, and Ctrl+C copies the selected runes in reading order. It needs launcher.search.previews on. Rofi-style modes keep Space for select-element and open Quick Look on Shift+Space alone.

The footer shows what Enter and Ctrl+Enter do. Right-click a row for its actions; click outside to close.

Currencies, times and dates ​

QueryAnswer
100 usd in eur, $100 to €, 12.5 dollars in eurosConverted at the European Central Bank reference rate, with its date
15:00 PST in Copenhagen, 3pm london to tokyo, 9:30 am in Europe/ParisThe time in the other zone, and the day if it differs
time in Tokyo, now in new yorkThe current time there
today + 90 days, 2026-12-24 + 2 weeks, 3 weeks from tomorrow, 10 days agoA date
days until 2027-01-01, days since 2026-01-01, 2026-12-24 - todayA number of days
  • Currencies are those the ECB publishes, by code, symbol ($, €, £, ¥) or name. kr means the krone or krona of your language.
  • Rates are fetched at most once a day, never while typing, into $XDG_CACHE_HOME/lys-shell/fx.xml. Offline, the cached rates are used and their age shown. launcher.search.currency-rates: false stops fetching.
  • Zone abbreviations are fixed offsets (PST is always UTC−8); PT, MT, CT and ET follow daylight saving. Cities and IANA names work too. A time without a zone is local.
  • Adding months keeps to the month's end: January 31 plus one month is the last day of February.

Preview pane ​

Once the selection rests, a pane beside the list previews it:

RowPreview
FileAn image, the text of a text file, or a thumbnail
SnippetIts text
Clipboard entryThe text, an image with its type and size, a copied file, or the type and size
WindowA capture of the window with its title, app and workspace

Text is shown with line numbers and syntax highlighting in the theme's colors. The language comes from the file name, the #! line, the first line, or a vim or Emacs modeline. Known: C, C++, C#, CSS, diff, Dockerfile, Go, HTML, INI and systemd units, Java, JavaScript, JSON, Lua, make, Markdown, Nix, Python, Ruby, Rust, shell, SQL, TOML, TypeScript, XML, YAML. Only the visible lines are read.

A Markdown file is shown laid out, as CommonMark with GitHub's tables, strikethrough, task lists and bare links. Front matter shows as YAML, a code block is highlighted in the language its fence names (or that its text gives away) and scrolls sideways rather than wrap, and raw HTML shows as written. Links do not open. A picture standing on a line of its own shows as the picture, read from the Markdown file's folder at the page's width with its aspect ratio and its description as its alt text, within the pictures' decode budget; one within a line keeps its description there, and one whose file is missing, does not decode or is past the budget shows its description, as a picture on a URL does, which is never fetched. Only the blocks near what shows are laid out, so a long file opens as fast as a short one.

A CSV or TSV file shows as its rows under their first row, and a font as its specimen, its family's sample line at several sizes and the letters, digits and punctuation under them, set in the font itself. Only the rows near what shows are laid out, so a cut table opens as fast as a short one.

The window and clipboard modes (-show window, -show clipboard) show the same pane. launcher.search.previews: false turns it off.

The window mode previewing a window: its picture, title, app and workspaceThe clipboard mode previewing a copied text in fullThe clipboard mode previewing an entry by its type and sizeThe search panel previewing a file

Clipboard history ​

The shell keeps what you copy in memory, up to clipboard.history-mib. A selection marked secret by a password manager is never kept.

  • Pin an entry from the actions panel (Ctrl+K). Pinned entries are listed first and stored, byte for byte, in $XDG_DATA_HOME/lys-shell/clipboard-pinned/ (readable only by you), within clipboard.pinned-mib. A pin over that budget is refused.
  • Forget a row with Ctrl+Backspace; Clear Unpinned forgets the rest.
  • clipboard.persist: true stores the whole history in $XDG_DATA_HOME/lys-shell/clipboard-history/; turning it off empties that folder. Stored entries load when first listed.

In lys-shell launcher -show clipboard, kb-custom-1 forgets the entry, kb-custom-2 every unpinned one, kb-custom-3 pins or unpins it.

Emoji and characters ​

Person and hand emoji use launcher.emoji.skin-tone. The actions panel on such an emoji lists every tone; picking one makes it the default and saves it to the config.

-show emoji opens a grid of every emoji, filtered by name or keyword. Enter types the selected one into the previous window; Ctrl+Enter copies it.

-show unicode searches every named character, including combining and invisible ones (zero width joiner, nbsp). A query matches the start of words in a name or alias; U+2192 finds a code point; a typed character finds its name. Enter types it; the actions copy the character, its code point or its HTML entity.

Wallpaper picker ​

-show wallpaper, or the Choose Wallpaper row, opens a grid of the images in wallpaper.picker-directories (default: the cycling directory and the Wallpapers folder in your pictures directory), filtered as you type. The selected image is previewed on the picker's monitor, and with styling.theme-provider: wallpaper re-themes the shell. Enter keeps it for that monitor, Ctrl+Enter for every monitor, Esc restores the previous one. The choice is saved to the config. Thumbnails are shared freedesktop thumbnails in $XDG_CACHE_HOME/thumbnails/large.

Files in combi ​

-show combi finds files by name beside the other modes' rows, from the file index. With an empty query it lists your recently used files; as you type, recent files come first, then the best name matches: the whole name, then its start, then the start of a word in it, then anywhere inside it; then the shorter name, then the shallower file. A query of one character looks only at recent files, and until it is four characters long file rows follow the other modes' rows instead of competing with them. Each row shows the file's name and, dimmed, its folder (~ for your home), with a thumbnail where one can be made.

Type !files before a query to list files alone. Enter opens the file in its default app; Shift+Enter (the accept-alt action in launcher.keybindings) shows it selected in its folder in the file manager, lys-files on a lys desktop.

File rows are on by default. Set launcher.combi.files: false to leave them out, even when launcher.combi.modes names files:

yaml
launcher:
  combi:
    files: false

File index ​

lys-shell keeps one index of file names for the search panel and combi's file search, opened the first time either asks for files and kept for the shell's lifetime. It is walked once, breadth first from each root (default: home), at most 50,000 entries and 8 levels, on one filesystem, skipping hidden names, the names a folder's .hidden file lists and node_modules, vendor, target, build, dist, venv, __pycache__ and result; after that it follows every indexed folder through inotify, so a file created, renamed or deleted shows in the next search without a walk. Recent files from recently-used.xbel rank higher. Set launcher.search.file-roots when the home directory is too large to index fully, and launcher.search.file-exclude for more folder names to skip.

Configuration ​

Search options are in launcher.search:

yaml
launcher:
  search:
    web-engine: Kagi
    web-url: https://kagi.com/search?q={query}
    file-roots: [~/Documents, ~/src]
    file-exclude: [archive]
    quicklinks:
      - {name: GitHub, url: "https://github.com/search?q={query}", keyword: gh}
      - {name: Calendar, url: "https://calendar.example.com"}
    snippets:
      - {name: Signature, text: "Regards,\nAlex", keyword: sig}

With a keyword, gh rust opens the link with rust as the query. Panel animation follows animations, with animations.launcher as an override.

Script commands ​

Each executable in ~/.config/lys-shell/launcher/commands (or launcher.search.commands-dir) with a @lys.title line is a command. Directives are comment lines at the top of the file:

sh
#!/bin/sh
# @lys.title Shorten URL
# @lys.subtitle Through my shortener
# @lys.keywords link tiny
# @lys.icon ld-link-symbolic
# @lys.output copy
# @lys.argument url
# @lys.argument slug optional
exec shorten "$1" "$2"
DirectiveMeaning
@lys.titleRequired. Name shown and searched
@lys.subtitle, @lys.keywords, @lys.iconOptional. The icon is a name or an absolute path
@lys.outputsilent (default) runs detached, terminal in a terminal, copy waits up to 30 s and copies stdout
@lys.argument NAME [optional]Prompted for in turn, then passed as the next argument

Arguments are passed as argv, never through a shell. A file with an invalid directive is left out and logged with its line.

rofi mode ​

With rofi flags, lys-shell launcher is a rofi-compatible launcher and dmenu: -show drun, -dmenu, -e, custom keybindings and exit codes, script modes and the options in launcher. Run through a symlink named rofi, the binary takes the same flags. -show search is the search panel; -show emoji, -show unicode, -show wallpaper, -show clipboard, -show window and -show vault are the modes above. lys-shell launcher --help lists every flag.

Released under the MIT License.