Added ags
TODO copy ags config
This commit is contained in:
15
roles/ags/files/widget/bar/buttons/Date.ts
Normal file
15
roles/ags/files/widget/bar/buttons/Date.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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(),
|
||||
}),
|
||||
})
|
||||
Reference in New Issue
Block a user