summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorBelal <belalkoko00@gmail.com>2025-09-09 11:34:16 +0300
committerGitHub <noreply@github.com>2025-09-09 18:34:16 +1000
commit767ced0df331596307388498623a9ff43a0523a4 (patch)
treeaa0ea197549ba90610e4939bf87b6e0de5b8cada /config
parentdashboard: fix pfp picker (diff)
downloadcaelestia-shell-767ced0df331596307388498623a9ff43a0523a4.tar.gz
caelestia-shell-767ced0df331596307388498623a9ff43a0523a4.tar.bz2
caelestia-shell-767ced0df331596307388498623a9ff43a0523a4.zip
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>
Diffstat (limited to 'config')
-rw-r--r--config/LauncherConfig.qml107
1 files changed, 107 insertions, 0 deletions
diff --git a/config/LauncherConfig.qml b/config/LauncherConfig.qml
index d021089..31a1fc5 100644
--- a/config/LauncherConfig.qml
+++ b/config/LauncherConfig.qml
@@ -27,4 +27,111 @@ JsonObject {
property int wallpaperWidth: 280
property int wallpaperHeight: 200
}
+
+ property list<var> 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
+ }
+ ]
}