[Astal] Start adding hyprland module

This commit is contained in:
2025-10-16 22:25:48 +02:00
parent 0392f8fc0f
commit e44cc65f1f
2 changed files with 39 additions and 0 deletions

View File

@@ -118,6 +118,23 @@ const ActiveWindow = () => {
);
};
const ModeStatus = () => {
const label = new Gtk.Label();
const map = {
"device": "D",
"launch": "L",
"workspace": "W",
"windowing": "M",
"screenshotting": "S",
}
// TODO: Possibly add popover to it that lists binds
hypr.connect("submap", (name: string) => {
label.label = map[name];
label.cssClasses = ["mode-status", name + '-mode']
})
return
}
const WindowPopoverBox = () => {
return <box vertical>
<label label={"Available Windows"} cssClasses={['title-2']}></label>
@@ -144,4 +161,5 @@ export default {
Workspace,
ActiveWindow,
SysTray,
ModeStatus
};