diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-10 00:46:45 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-10 00:46:45 -0500 |
| commit | 47dfcf4baf42c33ca5ee78dd4c0877e894aec1fb (patch) | |
| tree | 5b6ef1ea9588dcbf2b3cb41698924775341e219a /modules/launcher/AppList.qml | |
| parent | osicon: toggle launcher on click (diff) | |
| download | caelestia-shell-47dfcf4baf42c33ca5ee78dd4c0877e894aec1fb.tar.gz caelestia-shell-47dfcf4baf42c33ca5ee78dd4c0877e894aec1fb.tar.bz2 caelestia-shell-47dfcf4baf42c33ca5ee78dd4c0877e894aec1fb.zip | |
launcher: python execution like calculator functionality
Diffstat (limited to 'modules/launcher/AppList.qml')
| -rw-r--r-- | modules/launcher/AppList.qml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/modules/launcher/AppList.qml b/modules/launcher/AppList.qml index 7f7b843..6217237 100644 --- a/modules/launcher/AppList.qml +++ b/modules/launcher/AppList.qml @@ -52,7 +52,7 @@ StyledListView { const text = search.text; const prefix = Config.launcher.actionPrefix; if (text.startsWith(prefix)) { - for (const action of ["calc", "scheme", "variant"]) + for (const action of ["calc", "python", "scheme", "variant"]) if (text.startsWith(`${prefix}${action} `)) return action; @@ -93,6 +93,14 @@ StyledListView { } }, State { + name: "python" + + PropertyChanges { + model.values: [0] + root.delegate: pythonItem + } + }, + State { name: "scheme" PropertyChanges { @@ -240,6 +248,14 @@ StyledListView { } Component { + id: pythonItem + + PythonItem { + list: root + } + } + + Component { id: schemeItem SchemeItem { |