overlay window rules and binds

This commit is contained in:
2026-07-16 18:24:04 -07:00
parent a2ac88ce59
commit 3ebab9e327
2 changed files with 21 additions and 3 deletions

View File

@@ -54,6 +54,17 @@ local function select_window(n)
workspace = hl.get_active_workspace() workspace = hl.get_active_workspace()
end end
local windows = hl.get_windows({workspace = workspace}) local windows = hl.get_windows({workspace = workspace})
-- fuckass language doesn't have normal for loops
local i = 1
while i <= #windows do
if windows[i].pinned then
table.remove(windows, i)
else
i=i+1
end
end
table.sort( table.sort(
windows, windows,
function (a, b) function (a, b)

View File

@@ -44,7 +44,7 @@ hl.window_rule({
class = "ninjabrainbot-Main" class = "ninjabrainbot-Main"
}, },
float = true, float = true,
move = {10, "monitor_h*0.5 - window_h*0.5"} move = {6, "monitor_h*0.5 - window_h*0.5"}
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
@@ -55,10 +55,17 @@ hl.window_rule({
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
title = "monoverlay" title = "monoverlay(-t)?"
}, },
float = true, float = true,
pin = true pin = true,
no_blur = true,
})
hl.window_rule({
match = {
title = "monoverlay-t"
},
decorate = false,
}) })
hl.layer_rule({ hl.layer_rule({
match = { namespace = "quickshell" }, match = { namespace = "quickshell" },