2023-11-27 15:50:20 -05:00
|
|
|
import { Label } from 'resource:///com/github/Aylur/ags/widget.js';
|
|
|
|
|
|
|
|
|
2024-01-13 16:07:33 -05:00
|
|
|
export default () => Label({ class_name: 'clock' })
|
2023-12-19 12:28:29 -05:00
|
|
|
.poll(1000, (self) => {
|
2023-11-27 15:50:20 -05:00
|
|
|
const time = imports.gi.GLib
|
2023-12-19 12:28:29 -05:00
|
|
|
.DateTime.new_now_local();
|
2023-11-27 15:50:20 -05:00
|
|
|
|
|
|
|
self.label = time.format('%a. ') +
|
|
|
|
time.get_day_of_month() +
|
|
|
|
time.format(' %b. %H:%M');
|
2023-12-19 12:28:29 -05:00
|
|
|
});
|