snowflake/home/ags/config/js/widgets/time.js
notohh e192ba705e
All checks were successful
flake check / check (push) Successful in 9m17s
fmt check / check (push) Successful in 1m16s
ags: updates
2024-01-03 14:10:19 -05:00

18 lines
No EOL
338 B
JavaScript

import { Widget, Utils } from '../../import.js';
const Time = () => Widget.EventBox({
child: Widget.Label({
className: "date"
}).poll(
1000,
(self) =>
Utils.execAsync(["date", "+%a %b %d %H:%M"]).then((time) =>
self.label = time
),
),
});
export {
Time
}