repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by admin
quickshell/nuguland/features/launcher/fixtures/route-probe.qml
Rawimport QtQuick
import Quickshell
import Quickshell.Io
import "../../../features/launcher" as LauncherFeature
Scope {
LauncherFeature.Launcher {
id: launcher
}
IpcHandler {
target: "uiTest"
function activate(which: string): string {
const row = {
id: "fixture",
title: "fixture",
desktopId: which === "terminal" ? "fixture-terminal" : "fixture-browser.desktop",
terminal: which === "terminal",
actions: [
{
id: "new-window",
title: "new window"
}
]
};
return which === "action" ? launcher.activateAction(row, 0) : launcher.activate(row);
}
}
}