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
43 lines
1.3 KiB
TypeScript
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
|
|
};
|