Files
Dotfiles/roles/ags/files/widget/bar/buttons/Date.ts
Keule0010 8aa6bcd5cb Added ags
TODO copy ags config
2024-04-16 00:28:26 +02:00

16 lines
415 B
TypeScript

import { clock } from "lib/variables"
import PanelButton from "../PanelButton"
import options from "options"
const { format, action } = options.bar.date
const time = Utils.derive([clock, format], (c, f) => c.format(f) || "")
export default () => PanelButton({
window: "datemenu",
on_clicked: action.bind(),
child: Widget.Label({
justification: "center",
label: time.bind(),
}),
})