From 3980ba30642eb22d01da999099d4d465cae8f991 Mon Sep 17 00:00:00 2001 From: chlorospingus Date: Thu, 30 Jul 2026 17:02:04 -0700 Subject: [PATCH] some mcsr bs --- hypr/hyprland/binds.lua | 9 ++------- hypr/hyprland/mcsr.lua | 13 ++++++------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/hypr/hyprland/binds.lua b/hypr/hyprland/binds.lua index 503d0bd..c3bdca0 100644 --- a/hypr/hyprland/binds.lua +++ b/hypr/hyprland/binds.lua @@ -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] diff --git a/hypr/hyprland/mcsr.lua b/hypr/hyprland/mcsr.lua index 4916d91..54df4b7 100644 --- a/hypr/hyprland/mcsr.lua +++ b/hypr/hyprland/mcsr.lua @@ -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})