overlay window rules and binds
This commit is contained in:
@@ -54,6 +54,17 @@ local function select_window(n)
|
||||
workspace = hl.get_active_workspace()
|
||||
end
|
||||
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(
|
||||
windows,
|
||||
function (a, b)
|
||||
|
||||
@@ -44,7 +44,7 @@ hl.window_rule({
|
||||
class = "ninjabrainbot-Main"
|
||||
},
|
||||
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({
|
||||
match = {
|
||||
@@ -55,10 +55,17 @@ hl.window_rule({
|
||||
})
|
||||
hl.window_rule({
|
||||
match = {
|
||||
title = "monoverlay"
|
||||
title = "monoverlay(-t)?"
|
||||
},
|
||||
float = true,
|
||||
pin = true
|
||||
pin = true,
|
||||
no_blur = true,
|
||||
})
|
||||
hl.window_rule({
|
||||
match = {
|
||||
title = "monoverlay-t"
|
||||
},
|
||||
decorate = false,
|
||||
})
|
||||
hl.layer_rule({
|
||||
match = { namespace = "quickshell" },
|
||||
|
||||
Reference in New Issue
Block a user