* Implemented strict linting standards and prettier formatting config. * More linter fixes and type updates. * More linter updates and type fixes * Remove noisy comments * Linter and type updates * Linter, formatting and type updates. * Linter updates * Type updates * Type updates * fixed all linter errors * Fixed all linting, formatting and type issues. * Resolve merge conflicts.
16 lines
462 B
TypeScript
16 lines
462 B
TypeScript
import GLib from 'gi://GLib';
|
|
import { DateTime } from 'types/@girs/glib-2.0/glib-2.0.cjs';
|
|
|
|
export const clock = Variable(GLib.DateTime.new_now_local(), {
|
|
poll: [1000, (): DateTime => GLib.DateTime.new_now_local()],
|
|
});
|
|
|
|
export const uptime = Variable(0, {
|
|
poll: [60_000, 'cat /proc/uptime', (line): number => Number.parseInt(line.split('.')[0]) / 60],
|
|
});
|
|
|
|
export const distro = {
|
|
id: GLib.get_os_info('ID'),
|
|
logo: GLib.get_os_info('LOGO'),
|
|
};
|