ags-config/widget/time.tsx
2025-04-29 18:10:09 +02:00

15 lines
321 B
TypeScript

import { GLib, Variable, } from "astal"
import { App, Gtk, Gdk } from "astal/gtk4";
export default function Time({ }) {
const time = Variable<string>("").poll(1000, () => GLib.DateTime.new_now_local().format("%H:%M")!)
return <label
cssName="Time"
onDestroy={() => time.drop()}
label={time()}
/>
}