added Batterymenu and refactor

This commit is contained in:
wt committed 2025-03-13 12:21:24 +07:00
1 parent 0bcecde4c7
commit a7824e0128
14 files changed
+230 -36

No files matched your search

+3 -6
View File
@@ -1,6 +1,5 @@
import { App, Astal, Gtk, Gdk } from "astal/gtk3";
import {
PowerMenu,
Cpu,
BatteryLevel,
Ram,
@@ -9,18 +8,15 @@ import {
// FocusedClient,
Time,
SysTray,
Media,
LauncherButton,
PowerMenuButton,
MediaPlayerButton,
Volume,
} from "./modules/export";
// import Wp from "gi://AstalWp";
// import { bind } from "astal";
import { BatteryMenu, MediaMenu, PowerMenu } from "./menus/menus";
export default function Bar(gdkmonitor: Gdk.Monitor) {
const { TOP, LEFT, RIGHT } = Astal.WindowAnchor;
// const speaker = Wp.get_default()?.audio.defaultSpeaker!;
return (
<>
<window
@@ -53,7 +49,8 @@ export default function Bar(gdkmonitor: Gdk.Monitor) {
</centerbox>
</window>
<PowerMenu />
<Media />
<MediaMenu />
<BatteryMenu />
</>
);
}