working bar

This commit is contained in:
Bloxx12 2025-04-21 09:35:17 +02:00
commit 2c9ff9db2f
8 changed files with 121 additions and 126 deletions

11
widget/time.tsx Normal file
View file

@ -0,0 +1,11 @@
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()} />
}