some mcsr bs

This commit is contained in:
2026-07-30 17:02:04 -07:00
parent f012e0251e
commit 3980ba3064
2 changed files with 8 additions and 14 deletions

View File

@@ -37,13 +37,8 @@ local function select_window(n)
table.sort(
windows,
function (a, b)
if a.at.x < b.at.x then
return true
end
if a.at.x > b.at.x then
return false
end
return a.at.y < b.at.y
return ((a.at.x^2 + a.at.y^2) * 1)
< ((b.at.x^2 + b.at.y^2) * 1)
end
)
return windows[n]

View File

@@ -27,6 +27,10 @@ hl.define_submap("mcsr", function()
hl.bind("KP_NEXT", hl.dsp.window.resize({x = 2540, y = 400}))
hl.bind("KP_NEXT", hl.dsp.window.center())
-- Fullscreen
hl.bind('5', hl.dsp.window.fullscreen())
hl.bind('5', hl.dsp.exec_cmd("quickshell ipc call boateye close; quickshell ipc call thin close"))
-- Search crafting mappings
remap("mouse:275", "f3")
remap("1", "apostrophe")
@@ -42,8 +46,8 @@ remap("mouse:275", "f3")
-- Close boateye
-- FIXME: use hl.on() to couple this to the actions of fullscreening/floating
-- instead of the keybinds
bind("SUPER + F", hl.dsp.exec_cmd("quickshell ipc call boateye close; quickshell ipc call thin close"))
bind("SUPER + M", hl.dsp.exec_cmd("quickshell ipc call boateye close; quickshell ipc call thin close"))
bind("SUPER + SEMICOLON", hl.dsp.exec_cmd("quickshell ipc call boateye close; quickshell ipc call thin close"))
bind("SUPER + J", hl.dsp.exec_cmd("quickshell ipc call boateye close; quickshell ipc call thin close"))
bind("KP_LEFT", hl.dsp.pass({window = "class:ninjabrainbot-Main"}))
bind("KP_LEFT", hl.dsp.pass({window = "class:ninjabrainbot-Main"}), {release = true})
@@ -53,8 +57,3 @@ bind("KP_RIGHT", hl.dsp.pass({window = "class:ninjabrainbot-Main"}))
bind("KP_RIGHT", hl.dsp.pass({window = "class:ninjabrainbot-Main"}), {release = true})
bind("SHIFT + KP_BEGIN", hl.dsp.pass({window = "class:ninjabrainbot-Main"}))
bind("SHIFT + KP_BEGIN", hl.dsp.pass({window = "class:ninjabrainbot-Main"}), {release = true})
-- bind("A", hl.dsp.global("chlorostroke:apressed"), {non_consuming = true, ignore_mods = true})
-- bind("A", hl.dsp.global("chlorostroke:apressed"), {non_consuming = true, ignore_mods = true, release = true})
-- bind("S", hl.dsp.global("chlorostroke:spressed"), {non_consuming = true, ignore_mods = true})
-- bind("S", hl.dsp.global("chlorostroke:spressed"), {non_consuming = true, ignore_mods = true, release = true})