ags-config/widget/time.tsx

12 lines
273 B
TypeScript
Raw Normal View History

2025-04-21 09:35:17 +02:00
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()} />
}