Update astal widgets

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-05-24 21:38:35 +01:00
parent 05f5576e1f
commit 3610611615
16 changed files with 184 additions and 60 deletions

View File

@@ -0,0 +1,21 @@
import { App, Astal, Gtk, Gdk } from "astal/gtk3";
import Systray from "./components/Tray";
import Hidden from "./components/Hidden";
import Battery from "./components/Battery";
export default (monitor: Gdk.Monitor) => (
<window
className="root"
gdkmonitor={monitor}
exclusivity={Astal.Exclusivity.IGNORE}
anchor={Astal.WindowAnchor.TOP | Astal.WindowAnchor.RIGHT}
application={App}
>
<Hidden>
<box className="widgets" hexpand halign={Gtk.Align.END}>
<Systray />
<Battery />
</box>
</Hidden>
</window>
);