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

11 lines
273 B
TypeScript

import { GLib, Variable, } from "astal"
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()} />
}