AGS/widget/Agenda.tsx

20 lines
505 B
TypeScript
Raw Normal View History

2024-11-21 22:45:00 +07:00
import { App, Astal, Gtk, Gdk } from "astal/gtk3";
import { exec, Variable } from "astal";
const agenda = exec(["gcalcli", "agenda", "--tsv", "--details=end"]);
export default function Agenda(gdkmonitor: Gdk.Monitor) {
agenda.split("\n").map(console.log);
return (
<window
className="Calendar"
gdkmonitor={gdkmonitor}
exclusivity={Astal.Exclusivity.EXCLUSIVE}
anchor={Astal.WindowAnchor.RIGHT}
application={App}
>
<box>{agenda}</box>
</window>
);
}