Janis Hutz 8a2180e120 [AGS] GTK 4 Migration: Done, Start adding QuickActions
Probably gonna abandon the QuickActions, as that is just way too much
effort for what it does. Will be providing keybinds for doing what I
wanted to do there in Hyprland
2025-04-22 15:30:41 +02:00

24 lines
556 B
TypeScript

import { GLib, Variable } from "astal"
import { Gtk } from "astal/gtk4"
const Time = ({ format = "%a, %e.%m %H:%M:%S" }) => {
const time = Variable<string>("").poll(1000, () =>
GLib.DateTime.new_now_local().format(format)!)
return <menubutton cssClasses={["Time"]} hexpand halign={Gtk.Align.CENTER}>
<label onDestroy={() => time.drop()} label={time()}></label>
<popover>
<Gtk.Calendar />
</popover>
</menubutton>
}
const Calendar = () => {
}
export default {
Time
}