2025-04-21 09:35:17 +02:00
|
|
|
import { App, Astal, Gtk, Gdk, } from "astal/gtk4"
|
|
|
|
import Workspaces from "./workspaces"
|
|
|
|
import Systray from "./systray"
|
|
|
|
import Battery from "./battery"
|
|
|
|
import Time from "./time"
|
2025-04-20 22:22:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
export default function Bar(gdkmonitor: Gdk.Monitor) {
|
|
|
|
const { TOP, LEFT, RIGHT } = Astal.WindowAnchor
|
|
|
|
|
|
|
|
return <window
|
|
|
|
visible
|
|
|
|
cssClasses={["Bar"]}
|
|
|
|
gdkmonitor={gdkmonitor}
|
|
|
|
exclusivity={Astal.Exclusivity.EXCLUSIVE}
|
|
|
|
anchor={TOP | LEFT | RIGHT}
|
|
|
|
application={App}>
|
|
|
|
<centerbox>
|
|
|
|
<box hexpand halign={Gtk.Align.START}>
|
2025-04-21 09:35:17 +02:00
|
|
|
<Battery />
|
2025-04-20 22:22:28 +02:00
|
|
|
</box>
|
|
|
|
<box hexpand halign={Gtk.Align.CENTER}>
|
|
|
|
<Workspaces />
|
|
|
|
</box>
|
|
|
|
<box hexpand halign={Gtk.Align.END}>
|
|
|
|
<Time />
|
2025-04-21 09:35:17 +02:00
|
|
|
<Systray />
|
2025-04-20 22:22:28 +02:00
|
|
|
</box>
|
|
|
|
|
|
|
|
</centerbox>
|
|
|
|
</window>
|
|
|
|
}
|