40 lines
1.2 KiB
TypeScript
Raw Permalink Normal View History

2024-12-27 15:42:51 +03:00
import { App } from "astal/gtk3"
import { Astal, Gtk, Gdk } from "astal/gtk3"
import Time from "./elements/Time"
import Wifi from "./elements/Wifi"
import Audio from "./elements/Audio"
import Media from "./elements/Media"
2025-01-11 18:55:43 +03:00
import Layout from "./elements/Keyboard"
2024-12-27 15:42:51 +03:00
import SysTray from "./elements/SysTray"
import Workspaces from "./elements/Workspaces"
import BatteryLevel from "./elements/Battery"
export default function Bar(monitor: Gdk.Monitor) {
const { TOP, LEFT, RIGHT } = Astal.WindowAnchor
return <window
className="Bar"
gdkmonitor={monitor}
exclusivity={Astal.Exclusivity.EXCLUSIVE}
anchor={TOP | LEFT | RIGHT}>
2024-12-28 22:14:11 +03:00
<centerbox className="Container">
2024-12-27 15:42:51 +03:00
<box hexpand halign={Gtk.Align.START}>
<Workspaces />
2025-01-11 18:55:43 +03:00
<Layout />
2024-12-27 15:42:51 +03:00
</box>
<box>
<Media />
</box>
<box hexpand halign={Gtk.Align.END} >
<SysTray />
<Wifi />
<Audio />
<BatteryLevel />
<Time />
</box>
</centerbox>
</window>
}