some mcsr bs
This commit is contained in:
@@ -37,13 +37,8 @@ local function select_window(n)
|
|||||||
table.sort(
|
table.sort(
|
||||||
windows,
|
windows,
|
||||||
function (a, b)
|
function (a, b)
|
||||||
if a.at.x < b.at.x then
|
return ((a.at.x^2 + a.at.y^2) * 1)
|
||||||
return true
|
< ((b.at.x^2 + b.at.y^2) * 1)
|
||||||
end
|
|
||||||
if a.at.x > b.at.x then
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
return a.at.y < b.at.y
|
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
return windows[n]
|
return windows[n]
|
||||||
|
|||||||
@@ -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.resize({x = 2540, y = 400}))
|
||||||
hl.bind("KP_NEXT", hl.dsp.window.center())
|
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
|
-- Search crafting mappings
|
||||||
remap("mouse:275", "f3")
|
remap("mouse:275", "f3")
|
||||||
remap("1", "apostrophe")
|
remap("1", "apostrophe")
|
||||||
@@ -42,8 +46,8 @@ remap("mouse:275", "f3")
|
|||||||
-- Close boateye
|
-- Close boateye
|
||||||
-- FIXME: use hl.on() to couple this to the actions of fullscreening/floating
|
-- FIXME: use hl.on() to couple this to the actions of fullscreening/floating
|
||||||
-- instead of the keybinds
|
-- instead of the keybinds
|
||||||
bind("SUPER + F", 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 + M", 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"}))
|
||||||
bind("KP_LEFT", hl.dsp.pass({window = "class:ninjabrainbot-Main"}), {release = true})
|
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("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"}))
|
||||||
bind("SHIFT + KP_BEGIN", hl.dsp.pass({window = "class:ninjabrainbot-Main"}), {release = true})
|
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})
|
|
||||||
|
|||||||
Reference in New Issue
Block a user