From 767ced0df331596307388498623a9ff43a0523a4 Mon Sep 17 00:00:00 2001 From: Belal Date: Tue, 9 Sep 2025 11:34:16 +0300 Subject: launcher: allow configuring actions (#558) * refactor: make launcher actions configurable * use variants + internal -> setMode + format * reorder readme --------- Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> --- README.md | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 8749ae4..b483910 100644 --- a/README.md +++ b/README.md @@ -357,6 +357,112 @@ default, you must create it manually. }, "launcher": { "actionPrefix": ">", + "actions": [ + { + "name": "Calculator", + "icon": "calculate", + "description": "Do simple math equations (powered by Qalc)", + "command": ["autocomplete", "calc"], + "enabled": true, + "dangerous": false + }, + { + "name": "Scheme", + "icon": "palette", + "description": "Change the current colour scheme", + "command": ["autocomplete", "scheme"], + "enabled": true, + "dangerous": false + }, + { + "name": "Wallpaper", + "icon": "image", + "description": "Change the current wallpaper", + "command": ["autocomplete", "wallpaper"], + "enabled": true, + "dangerous": false + }, + { + "name": "Variant", + "icon": "colors", + "description": "Change the current scheme variant", + "command": ["autocomplete", "variant"], + "enabled": true, + "dangerous": false + }, + { + "name": "Transparency", + "icon": "opacity", + "description": "Change shell transparency", + "command": ["autocomplete", "transparency"], + "enabled": false, + "dangerous": false + }, + { + "name": "Random", + "icon": "casino", + "description": "Switch to a random wallpaper", + "command": ["caelestia", "wallpaper", "-r"], + "enabled": true, + "dangerous": false + }, + { + "name": "Light", + "icon": "light_mode", + "description": "Change the scheme to light mode", + "command": ["setMode", "light"], + "enabled": true, + "dangerous": false + }, + { + "name": "Dark", + "icon": "dark_mode", + "description": "Change the scheme to dark mode", + "command": ["setMode", "dark"], + "enabled": true, + "dangerous": false + }, + { + "name": "Shutdown", + "icon": "power_settings_new", + "description": "Shutdown the system", + "command": ["systemctl", "poweroff"], + "enabled": true, + "dangerous": true + }, + { + "name": "Reboot", + "icon": "cached", + "description": "Reboot the system", + "command": ["systemctl", "reboot"], + "enabled": true, + "dangerous": true + }, + { + "name": "Logout", + "icon": "exit_to_app", + "description": "Log out of the current session", + "command": ["loginctl", "terminate-user", ""], + "enabled": true, + "dangerous": true + }, + { + "name": "Lock", + "icon": "lock", + "description": "Lock the current session", + "command": ["loginctl", "lock-session"], + "enabled": true, + "dangerous": false + }, + { + "name": "Sleep", + "icon": "bedtime", + "description": "Suspend then hibernate", + "command": ["systemctl", "suspend-then-hibernate"], + "enabled": true, + "dangerous": false + } + ], "dragThreshold": 50, "vimKeybinds": false, "enableDangerousActions": false, -- cgit v1.2.3-freya