Beta

garlaunch

Application Launcher

A dmenu/rofi-inspired application launcher for X11 with fuzzy search powered by nucleo. garlaunch features multiple modes: launch desktop applications (drun), run PATH commands (run), switch windows (window), or execute custom scripts (script). Built on gartk for consistent rendering and theming across the gar desktop suite.

Features

  • Fuzzy search with nucleo matcher
  • Frecency-based sorting for frequent applications
  • Smart case matching and normalization
  • Desktop entry mode (scans .desktop files)
  • Command execution mode (PATH binaries)
  • Window switcher mode (via gar IPC)
  • Custom script mode with JSON protocol
  • Daemon mode with IPC control
  • Popup window centered on primary monitor
  • Cairo/Pango rendering via gartk
  • Keyboard grab for exclusive input
  • Flatpak and Snap application support
  • Scrollable item list with selection highlight
  • garlaunchctl for external control
  • Fallback to direct launch without daemon

Quick Start

Launch Applications

$ garlaunch # Default mode (drun)

Type to search, Enter to launch, Escape to close.

Bind to Key in gar

~/.config/gar/init.lua
-- Bind Mod+d to launch garlaunch
gar.bind("mod+d", function()
    gar.exec("garlaunch")
end)

-- Bind Mod+/ to window switcher
gar.bind("mod+slash", function()
    gar.exec("garlaunch --mode window")
end)

Installation & Usage

1. Installation

Install garlaunch using the unified installer or build from source:

terminal
$ curl -fsSL https://gar.musicsian.com/install.sh | bash -s -- --component=garlaunch # Install via script
$ cd ~/.local/src/gardesk/garlaunch && cargo build --release # Or build from source

2. Basic Usage

terminal
$ garlaunch # Launch in drun mode (desktop apps)
$ garlaunch --mode run # Run mode (PATH commands)
$ garlaunch --mode window # Window switcher
$ garlaunch --mode script --source ./myscript.sh # Custom script

3. Run as Daemon (Optional)

Run garlaunch as a daemon for IPC control via garlaunchctl:

terminal
$ garlaunch --daemon & # Start daemon in background
$ garlaunchctl show # Show launcher via IPC
$ garlaunchctl toggle --mode window # Toggle window switcher

4. Keyboard Shortcuts

Key Action
TypeFuzzy search items
EnterActivate selected item
EscapeClose launcher
Up / DownNavigate items
Page Up / DownNavigate by page (10 items)
Left / RightMove cursor in input
Home / EndJump to start/end of input
BackspaceDelete character before cursor
DeleteDelete character after cursor
Releases