G2 only: You can pair the glasses with a bluetooth keyboard. It will relay key events, and you can use it to type in some apps and to navigate the UI.
23 lines
690 B
TypeScript
23 lines
690 B
TypeScript
import { launchWorkerAppWindow, type AppDefinition } from "../app-definition";
|
|
|
|
const terminalApp: AppDefinition = {
|
|
appId: "terminal",
|
|
title: "Terminal",
|
|
icon: "terminal",
|
|
launch: (ctx) =>
|
|
launchWorkerAppWindow(ctx, {
|
|
createWorker: () => new Worker("./terminal-app.worker"),
|
|
windowId: "terminal:hub",
|
|
title: "Terminal",
|
|
iconLetter: "T",
|
|
icon: "terminal",
|
|
// Session windows stay independent: launching reopens the hub even
|
|
// while terminal sessions are open.
|
|
matchExistingBy: "windowId",
|
|
// The hub window can show a session too, so it takes keys like one.
|
|
acceptsKeys: true,
|
|
}),
|
|
};
|
|
|
|
export default terminalApp;
|