update and refactor

This commit is contained in:
wt committed 2025-03-12 15:40:34 +07:00
1 parent 2f416a1325
commit f1c32ead5d
15 files changed
+164 -88

No files matched your search

+5
View File
@@ -13,10 +13,14 @@ import {
LauncherButton,
PowerMenuButton,
MediaPlayerButton,
Volume,
} from "./modules/export";
// import Wp from "gi://AstalWp";
// import { bind } from "astal";
export default function Bar(gdkmonitor: Gdk.Monitor) {
const { TOP, LEFT, RIGHT } = Astal.WindowAnchor;
// const speaker = Wp.get_default()?.audio.defaultSpeaker!;
return (
<>
<window
@@ -39,6 +43,7 @@ export default function Bar(gdkmonitor: Gdk.Monitor) {
<Workspaces />
</box>
<box hexpand halign={Gtk.Align.END} className="RoudedBlock">
<Volume />
<MediaPlayerButton />
<SysTray />
<BatteryLevel />