Janis Hutz 8a2180e120 [AGS] GTK 4 Migration: Done, Start adding QuickActions
Probably gonna abandon the QuickActions, as that is just way too much
effort for what it does. Will be providing keybinds for doing what I
wanted to do there in Hyprland
2025-04-22 15:30:41 +02:00

43 lines
1.3 KiB
TypeScript

import { App, Astal, Gdk, Gtk } from "astal/gtk4";
import Hyprland from "./modules/Hyprland";
import Calendar from "./modules/Calendar";
import QuickView from "./modules/QuickView";
import SystemInfo from "./modules/SystemInfo";
const Bar = (gdkmonitor: Gdk.Monitor) => {
const { TOP, LEFT, RIGHT } = Astal.WindowAnchor;
return (
<window gdkmonitor={gdkmonitor}
cssClasses={["Bar"]}
exclusivity={Astal.Exclusivity.EXCLUSIVE}
anchor={TOP | LEFT | RIGHT}
visible
application={App}
child={
<box orientation={Gtk.Orientation.HORIZONTAL}>
<box hexpand halign={Gtk.Align.START} cssClasses={["BarLeft"]}>
<Calendar.Time />
<SystemInfo.SystemInfo />
<Hyprland.Workspace />
</box>
<Hyprland.ActiveWindow />
<box hexpand halign={Gtk.Align.END} cssClasses={["BarRight"]}>
<Hyprland.SysTray />
<QuickView.QuickView />
</box>
</box>
}>
</window>
);
}
const cliHandler = ( args: string[] ): string => {
return 'Not implemented';
}
export default {
Bar,
cliHandler
};