diff options
| author | anders130 <93037023+anders130@users.noreply.github.com> | 2025-09-10 13:19:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-10 21:19:26 +1000 |
| commit | 58615b809e8f789a6c4f84af4bbaa6d661ca5de4 (patch) | |
| tree | 4280a17a17964c6d1fa3d1484c5f28a5ba9dac50 | |
| parent | launcher: fix showOnHover (diff) | |
| download | caelestia-shell-58615b809e8f789a6c4f84af4bbaa6d661ca5de4.tar.gz caelestia-shell-58615b809e8f789a6c4f84af4bbaa6d661ca5de4.tar.bz2 caelestia-shell-58615b809e8f789a6c4f84af4bbaa6d661ca5de4.zip | |
launcher: add config option for hiding applications (#568)
* feat(launcher): add config option for excluding applications from launcher
* fix(launcher): rename excludedApps to hiddenApps
* chore: add example to readme
* fix
---------
Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | config/LauncherConfig.qml | 1 | ||||
| -rw-r--r-- | modules/launcher/services/Apps.qml | 2 |
3 files changed, 4 insertions, 2 deletions
@@ -477,7 +477,8 @@ default, you must create it manually. "variants": false, "wallpapers": false }, - "showOnHover": false + "showOnHover": false, + "hiddenApps": [] }, "lock": { "recolourLogo": false diff --git a/config/LauncherConfig.qml b/config/LauncherConfig.qml index 31a1fc5..5f88ccd 100644 --- a/config/LauncherConfig.qml +++ b/config/LauncherConfig.qml @@ -10,6 +10,7 @@ JsonObject { property bool enableDangerousActions: false // Allow actions that can cause losing data, like shutdown, reboot and logout property int dragThreshold: 50 property bool vimKeybinds: false + property list<string> hiddenApps: [] property UseFuzzy useFuzzy: UseFuzzy {} property Sizes sizes: Sizes {} diff --git a/modules/launcher/services/Apps.qml b/modules/launcher/services/Apps.qml index 9f87d50..229bdae 100644 --- a/modules/launcher/services/Apps.qml +++ b/modules/launcher/services/Apps.qml @@ -69,7 +69,7 @@ Searcher { Variants { id: variants - model: [...DesktopEntries.applications.values].sort((a, b) => a.name.localeCompare(b.name)) + model: [...DesktopEntries.applications.values].filter(a => !Config.launcher.hiddenApps.includes(a.id)).sort((a, b) => a.name.localeCompare(b.name)) QtObject { required property DesktopEntry modelData |