overlay window rules and binds
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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" },
|
||||||
|
|||||||
Reference in New Issue
Block a user