From 2250446148cd6166ba3b3c2c9ac6f24cbf58d7e5 Mon Sep 17 00:00:00 2001 From: venus Date: Sun, 31 May 2026 17:15:40 -0500 Subject: [PATCH] patched some window rules Debugged some keubinds and working on native lua updates --- basic/keybinds.lua | 8 ++++---- basic/vars.lua | 3 +++ basic/windows.lua | 28 +++++----------------------- hyprland.lua | 2 +- 4 files changed, 13 insertions(+), 28 deletions(-) diff --git a/basic/keybinds.lua b/basic/keybinds.lua index 4c4c5a0..e846265 100644 --- a/basic/keybinds.lua +++ b/basic/keybinds.lua @@ -125,7 +125,7 @@ hl.bind(mainMod .. " + SPACE " ,hl.dsp.exec_cmd("playerctl play-pause")) ---- 10. Application launching --- hl.bind(mainMod .. " + SUPER_L", hl.dsp.exec_cmd(launcher .. " toggle"), { release = true }) +hl.bind(mainMod .. " + SUPER_L", hl.dsp.exec_cmd(launcher .. " toggle"), { release = true }) hl.bind(mainMod .. " + F " ,hl.dsp.exec_cmd(browser)) hl.bind("ALT + C" ,hl.dsp.exec_cmd(ipc .. "plugin:clipper openPanel")) hl.bind("code:148" ,hl.dsp.exec_cmd("kitty --class calc-term -o 'confirm_os_window_close 0' /home/venus/.cargo/bin/mathypad ")) @@ -133,9 +133,9 @@ hl.bind("code:148" ,hl.dsp.exec_cmd("kitty --class calc-term -o 'confirm_os_wi -- TODO rework with LUA -- hl.bind(mainMod .. " + escape" ,hl.dsp.exec_cmd("kitty --class btop -o "confirm_os_window_close 0" /usr/bin/btop")) -- hl.bind(mainMod .. " + SHIFT + escape" ,hl.dsp.exec_cmd("kitty --class btop -o "confirm_os_window_close 0" /usr/bin/nvtop")) -hl.bind(mainMod .. " + escape" ,hl.dsp.exec_cmd("kitty btop" ,{float = true, border_size = 5})) -hl.bind("CTRL + SHIFT + ESCAPE" ,hl.dsp.exec_cmd("kitty btop" ,{float = true, border_size = 5})) -hl.bind(mainMod .. " + SHIFT + escape" ,hl.dsp.exec_cmd("kitty nvtop",{float = true, border_size = 5})) +hl.bind(mainMod .. " + escape" ,hl.dsp.exec_cmd("kitty btop" ,{float = true, border_size = 2, size = {"(monitor_w * 0.9)", "(monitor_h * 0.9)"}})) +hl.bind("CTRL + SHIFT + ESCAPE" ,hl.dsp.exec_cmd("kitty btop" ,{float = true, border_size = 2, size = {"(monitor_w * 0.9)", "(monitor_h * 0.9)"}})) +hl.bind(mainMod .. " + SHIFT + escape" ,hl.dsp.exec_cmd("kitty nvtop",{float = true, border_size = 2, size = {"(monitor_w * 0.9)", "(monitor_h * 0.9)"}})) hl.bind(mainMod .. " + I" ,hl.dsp.exec_cmd("/home/venus/.config/scripts/connectPhone.sh ")) hl.bind(mainMod .. " + I" ,hl.dsp.exec_cmd("scrcpy --no-audio --no-video --keyboard=uhid --mouse=uhid")) hl.bind(mainMod .. " + SHIFT + I" ,hl.dsp.exec_cmd("/home/venus/.config/scripts/connectPhone.sh ")) diff --git a/basic/vars.lua b/basic/vars.lua index 771f8fd..bee29a0 100644 --- a/basic/vars.lua +++ b/basic/vars.lua @@ -39,6 +39,9 @@ hl.config = { inactive_timeout = 0.1, }, }, + xwayland = { + force_zero_scaling = true + } } diff --git a/basic/windows.lua b/basic/windows.lua index c55c6a3..28f1834 100644 --- a/basic/windows.lua +++ b/basic/windows.lua @@ -16,7 +16,7 @@ hl.window_rule({ hl.window_rule({ name = "compiler-window", match = { tag = "compiler"}, - ["col.active_border"] = "0xccaaffee", + border_color = "0xccaaffee", border_size = 2, float = false, }) @@ -25,7 +25,7 @@ hl.window_rule({ name = "gaming", match = { class = "steam", - initialClass = "steam" + initial_class = "steam" }, workspace = "special:gaming" }) @@ -52,15 +52,12 @@ hl.window_rule( { no_focus = true, }) --- xwayland { --- force_zero_scaling = true --- }) -- Hyprland-run hl.window_rule( hl.window_rule( { name = "move-hyprland-run", match = {class = "hyprland-run"}, - move = {20, "(monitor_h-120)"}, + move = {20,"monitor_h-120"}, float = true }) @@ -71,23 +68,8 @@ hl.window_rule( { float = true, center = true, opacity = 1, - -- move = cursor_x-10 cursor_y-10 - size ={"(monitor_w*.4)", "(monitor_h*.4)"} + -- move = {"cursor_x-10", "cursor_y-10"}, + size = {"monitor_w*.4", "monitor_h*.4"}, }) -hl.window_rule({ - name = "btop", - match = {class = "btop"}, - float = true, - dim_around = true, - size = {"(monitor_w*.9)" ,"(monitor_h*.8)"}, - -}) -hl.window_rule({ - name = "popup-term", - match = {class = "popup-term"}, - float = true - size = {"(monitor_w*.9)" ,"(monitor_h*.8)"}, - dim_around = true -}) diff --git a/hyprland.lua b/hyprland.lua index 17c5d38..66096d8 100644 --- a/hyprland.lua +++ b/hyprland.lua @@ -45,6 +45,6 @@ local basic = base .. "/basic" require("basic/looks") require("basic/keybinds") require("basic/vars") ---require("basic/windows") +require("basic/windows") -- require("plugins") --require("monitors")