Compare commits

..

2 Commits

Author SHA1 Message Date
e44cc65f1f [Astal] Start adding hyprland module 2025-10-16 22:25:48 +02:00
0392f8fc0f [Hyprland] Launch submap autoreset 2025-10-16 22:25:35 +02:00
3 changed files with 40 additions and 1 deletions

View File

@@ -11,6 +11,27 @@ window.Bar {
/* border-radius: 10px; */ /* border-radius: 10px; */
/* margin: 8px; */ /* margin: 8px; */
/* } */ /* } */
.mode-status {
&.windowing-mode {
}
&.workspace-mode {
}
&.launch-mode {
}
&.device-mode {
}
&.screenshotting-mode {
}
}
.bar-button { .bar-button {
border-radius: 20px; border-radius: 20px;

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 = () => { const WindowPopoverBox = () => {
return <box vertical> return <box vertical>
<label label={"Available Windows"} cssClasses={['title-2']}></label> <label label={"Available Windows"} cssClasses={['title-2']}></label>
@@ -144,4 +161,5 @@ export default {
Workspace, Workspace,
ActiveWindow, ActiveWindow,
SysTray, SysTray,
ModeStatus
}; };

View File

@@ -23,7 +23,7 @@ bind = $mainMod, escape, exec, wlogout
# │ Launch submap │ # │ Launch submap │
# ╰────────────────────────────────────────────────╯ # ╰────────────────────────────────────────────────╯
bind = $mainMod, X, submap, launch bind = $mainMod, X, submap, launch
submap = launch submap = launch, reset
# ── Kitty ─────────────────────────────────────────────────────────── # ── Kitty ───────────────────────────────────────────────────────────