mirror of
https://github.com/xsghetti/HyprCrux.git
synced 2025-07-04 14:20:37 -04:00
16 lines
428 B
JavaScript
16 lines
428 B
JavaScript
|
|
import GLib from "gi://GLib"
|
|
// import options from "options"
|
|
//
|
|
// const intval = options.system.fetchInterval.value
|
|
// const tempPath = options.system.temperature.value
|
|
|
|
export const clock = Variable(GLib.DateTime.new_now_local(), {
|
|
poll: [1000, () => GLib.DateTime.new_now_local()],
|
|
})
|
|
|
|
export const uptime = Variable(0, {
|
|
poll: [60_000, "cat /proc/uptime", line =>
|
|
Number.parseInt(line.split(".")[0]) / 60,
|
|
],
|
|
})
|