import { App, Astal, Gtk, Gdk } from "astal/gtk4" import { Variable } from "astal" function hide() { App.get_window("launcher")!.hide() } export default function Launcher(monitor: Gdk.Monitor) { const { CENTER } = Gtk.Align const width = Variable(1000) const text = Variable("") return { text.set("") width.set(self.get_current_monitor().get_width_mm()) }} onKeyPressed={(self, keyval, keycode) => { print( 'key pressed: ' + keyval + ' which has code ' + keycode ); }}> }