From 43573395593cd3c90c647da2b8c439f343e56070 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sat, 4 Jul 2026 06:55:17 +0545 Subject: [PATCH] feat: add configuration documentation and update TODO checklist Add detailed configuration documentation in README, describing TOML files, their purpose, and usage. Update the TODO checklist to reflect completed items and remove outdated entries. --- README.md | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4e54600..e1c0e0a 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,46 @@ cd ~/.config/Modus

Rocket Todo

+## Configuration + +Config files are in `config/` directory, using TOML format: + +| File | Purpose | +| ---------------------- | ---------------------- | +| `config/config.toml` | Main app configuration | +| `config/mods.toml` | Custom mod definitions | +| `config/launcher.toml` | Launcher settings | +| `config/dock.toml` | Dock pinned apps | + +## Custom Mods + +Define panel buttons that run commands or show dropdowns in `config/mods.toml`: + +```toml +[Mods.terminal] +icon = "terminal.svg" +icon-size = 16 +order = 1 +on-clicked = "kitty" + +[Mods.color-picker] +icon = "misc/color-picker.svg" +icon-size = 22 +order = 0 +on-left = "hyprpicker -a -n -f hex && sleep 0.1 && ..." +on-middle = "hyprpicker -a -n -f rgb && sleep 0.1 && ..." +on-right = "hyprpicker -n -f hsv | wl-copy -n && sleep 0.1 && ..." +``` + +- `icon` — SVG filename in `src/assets/icons/` +- `icon-size` — defaults to 16 +- `order` — button position (lower = first) +- `on-clicked` — shell command on any click +- `on-left`, `on-middle`, `on-right` — per-mouse-button commands (optional) +- `options` — dropdown menu entries (optional, each with `label` + `on-clicked`) +- Supports `&&`, `|`, and full shell syntax (runs via `sh -c`) +- File monitoring enables live reload — edit `mods.toml` and changes apply instantly + ## Manual Installation ```bash @@ -74,7 +114,7 @@ uv run start - [x] Music Player - [x] Desktop Widgets - [x] New Launcher (like Spotlight) -- [ ] Settings +- [x] Settings - [x] ~~Magnifier hover effect on Dock~~ - [x] ~~New Application Switcher~~ - [x] Panel Widget