diff --git a/src/app.ts b/src/app.ts new file mode 100644 index 0000000..137c42c --- /dev/null +++ b/src/app.ts @@ -0,0 +1,10 @@ +import { App } from "astal/gtk4"; +import style from "./style.scss"; +import Bar from "./app/windows/Bar"; + +App.start({ + css: style, + main() { + App.get_monitors().map(Bar); + }, +}); diff --git a/src/app/windows/Bar/components/BarCenter.tsx b/src/app/windows/Bar/components/BarCenter.tsx new file mode 100644 index 0000000..60636a5 --- /dev/null +++ b/src/app/windows/Bar/components/BarCenter.tsx @@ -0,0 +1,16 @@ +import { App, Astal, Gtk, Gdk } from "astal/gtk4"; +import { GLib, Variable } from "astal"; + +function Time({ format = "%H:%M - %A %e." }) { + const time = Variable("").poll(1000, () => GLib.DateTime.new_now_local().format(format)!); + + return