From 35dcbe4a827c8e5b1509a4b472db8d07520c764f Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sat, 4 Jul 2026 06:28:27 +0545 Subject: [PATCH] feat(config): migrate launcher configuration to TOML Migrate launcher configuration from JSON to TOML format, add new `launcher.toml` and `mods.toml` files, remove `launcher.json`, and update project metadata in `pyproject.toml` to version 0.2.0. --- config/launcher.json | 65 -------------------------------------------- config/launcher.toml | 60 ++++++++++++++++++++++++++++++++++++++++ config/mods.toml | 7 +++++ 3 files changed, 67 insertions(+), 65 deletions(-) delete mode 100644 config/launcher.json create mode 100644 config/launcher.toml create mode 100644 config/mods.toml diff --git a/config/launcher.json b/config/launcher.json deleted file mode 100644 index 332e2d2..0000000 --- a/config/launcher.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "launcher_config": { - "em": { - "examples": [ - "em updatejson" - ], - "icon": "emoji-people-symbolic", - "description": "Emoji - Search and copy emojis" - }, - "clip": { - "icon": "app.getclipboard.Clipboard", - "description": "Clipboard - Search and manage clipboard history" - }, - "=": { - "examples": [ - "= 10*5", - "= 2^8", - "= sin(30)" - ], - "icon": "calculator", - "description": "Quick Math - Fast mathematical expressions" - }, - "app": { - "icon": "apps", - "description": "Applications - Launch installed applications" - }, - "power": { - "icon": "shutdown", - "description": "Power - System power management and session control" - }, - "caffeine": { - "examples": [ - "caffeine 30m", - "caffeine 1h", - "caffeine 2h", - "caffeine on" - ], - "icon": "caffeine", - "description": "Caffeine - Prevent system from going idle" - }, - "sc": { - "icon": "cs-screen", - "description": "Screencapture - Record screen and audio" - }, - "wall": { - "icon": "daily-wallpaper", - "description": "Wallpapers - Set wallpapers, and tons of features" - }, - "?": { - "icon": "search-symbolic", - "description": "Quick Web Search - Fast web search with question mark", - "examples": [ - "? cats", - "? google cats", - "? youtube music" - ] - } - }, - "settings": { - "max_examples_shown": 2, - "default_icon": "apps", - "fallback_example_template": "{trigger} ", - "config_version": "1.0" - } -} diff --git a/config/launcher.toml b/config/launcher.toml new file mode 100644 index 0000000..0c699d9 --- /dev/null +++ b/config/launcher.toml @@ -0,0 +1,60 @@ +[launcher_config.em] +icon = "emoji-people-symbolic" +description = "Emoji - Search and copy emojis" +examples = [ + "em updatejson", +] + +[launcher_config.clip] +icon = "app.getclipboard.Clipboard" +description = "Clipboard - Search and manage clipboard history" + +[launcher_config."="] +icon = "calculator" +description = "Quick Math - Fast mathematical expressions" +examples = [ + "= 10*5", + "= 2^8", + "= sin(30)", +] + +[launcher_config.app] +icon = "apps" +description = "Applications - Launch installed applications" + +[launcher_config.power] +icon = "shutdown" +description = "Power - System power management and session control" + +[launcher_config.caffeine] +icon = "caffeine" +description = "Caffeine - Prevent system from going idle" +examples = [ + "caffeine 30m", + "caffeine 1h", + "caffeine 2h", + "caffeine on", +] + +[launcher_config.sc] +icon = "cs-screen" +description = "Screencapture - Record screen and audio" + +[launcher_config.wall] +icon = "daily-wallpaper" +description = "Wallpapers - Set wallpapers, and tons of features" + +[launcher_config."?"] +icon = "search-symbolic" +description = "Quick Web Search - Fast web search with question mark" +examples = [ + "? cats", + "? google cats", + "? youtube music", +] + +[settings] +max_examples_shown = 2 +default_icon = "apps" +fallback_example_template = "{trigger} " +config_version = "1.0" diff --git a/config/mods.toml b/config/mods.toml new file mode 100644 index 0000000..609c4a5 --- /dev/null +++ b/config/mods.toml @@ -0,0 +1,7 @@ +[Mods.terminal] +icon = "terminal.svg" +icon-size = 18 +on-clicked = "kitty" +order = 1 + +