perf: Home-manager to module

feat: Optionise config
This commit is contained in:
2026-08-19 21:41:35 +03:00
committed by Sweetbread
parent 1111288a47
commit fe7d4c1851
97 changed files with 395 additions and 488 deletions
@@ -0,0 +1,12 @@
import { Variable, GLib } from "astal"
export default function Time({ format = "%e %b - %H:%M %a" }) {
const time = Variable<string>("").poll(1000, () =>
GLib.DateTime.new_now_local().format(format)!)
return <label
className="Time"
onDestroy={() => time.drop()}
label={time()}
/>
}