feat: move status-bar to seperate repository, initial commit

This commit is contained in:
2025-09-24 21:11:28 -07:00
commit 68142eac7c
24 changed files with 664 additions and 0 deletions

15
widget/time.tsx Normal file
View File

@@ -0,0 +1,15 @@
import { bind, GLib, Variable } from "astal"
let current_time = Variable(GLib.DateTime.new_now_local().format("%H:%M"))
GLib.timeout_add(GLib.PRIORITY_DEFAULT, 1000, () => {
const now = GLib.DateTime.new_now_local()
current_time.set(now.format("%b %e (%a) %H:%M"))
return true
})
export default function Time() {
return <box className="status-box">
<label label={bind(current_time)} />
</box>
}