20 lines
505 B
TypeScript
20 lines
505 B
TypeScript
|
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>
|
||
|
);
|
||
|
}
|