1
0
Fork 0

Add mostly final ags config

This commit is contained in:
Avery 2024-09-08 20:21:34 +02:00
parent c310042564
commit bce65f6835
Signed by: Avery
GPG key ID: B684FD451B692E04
23 changed files with 999 additions and 156 deletions

View file

@ -0,0 +1,41 @@
import { date } from "../../state.js";
function BlinkingDots() {
return Widget.Label({
class_name: "blinking-dots",
label: ":",
});
}
export function Clock() {
return Widget.Box({
children: [
Widget.Box({ hexpand: true, hpack: "fill" }), // Separator
Widget.Box({
children: [
Widget.Label({
label: date.bind().as((d) => {
return d.split(" ")[0];
}),
}),
BlinkingDots(),
Widget.Label({
label: date.bind().as((d) => {
return d.split(" ")[1];
}),
}),
BlinkingDots(),
Widget.Label({
label: date.bind().as((d) => {
return d.split(" ")[2];
}),
}),
],
}),
Widget.Box({ hexpand: true, hpack: "fill" }), // Separator
],
class_names: ["clock", "clock-big"],
hpack: "fill",
spacing: 8,
});
}