zmen
Owner: IIIlllIIIllI URL: git@git.0x00nyx.xyz:seb/zmen.git
README.md
# zmen
A minimal application launcher written in Zig.
## Description
zmen is a simple, lightweight application launcher for X11 inspired by dmenu.
It uses XCB and Cairo for rendering with fewer than 700 lines of code.
Features:
- Tab completion for commands
- Minimal memory footprint
- Fast command scanning from standard executable paths
- Clean Zig implementation with no external dependencies other than X11 libraries
## Installation
Requirements:
- Zig compiler (tested with 0.12.0)
- libxcb1-dev
- libcairo2-dev
- libxcb-keysyms1-dev
- libx11-dev
```
git clone this repository
cd zmen
zig build
```
Or build directly:
```
zig build-exe main.zig -lc -lxcb -lcairo -lxcb-keysyms -lX11
```
## Usage
Run zmen:
```
./zmen
```
Recommended: bind to a key combination in your window manager config.
### Keybindings
- Type to search for commands
- Tab - Complete the suggested command
- Right arrow - Accept one character of suggestion
- Return - Execute the command
- Escape - Clear input or exit
## Configuration
Edit the source code directly. Simple configuration options:
```zig
const font_size = 25.0;
const bh = 30; // Bar height
const font = "Iosevka"; // Font name
const prompt = "run:"; // Prompt character
```
## LICENSE
Released under MIT license.