launcher v1

This commit is contained in:
Benjamin Palko 2025-08-19 23:31:39 -04:00
parent 8504f8ddd2
commit d71c9604a6
12 changed files with 1608 additions and 4 deletions

View file

@ -0,0 +1,22 @@
pragma Singleton
import qs.utils
import Quickshell
import QtQuick
FuzzySearch {
list: DesktopEntries.applications.values.filter(a => !a.noDisplay).sort((a, b) => a.name.localeCompare(b.name))
function launch(entry: DesktopEntry): void {
if (entry.runInTerminal)
Quickshell.execDetached({
command: ["kitty", "exec", ...entry.command],
workingDirectory: entry.workingDirectory
});
else
Quickshell.execDetached({
command: [...entry.command],
workingDirectory: entry.workingDirectory
});
}
}