patched some window rules

Debugged some keubinds and working on native lua updates
This commit is contained in:
venus
2026-05-31 17:15:40 -05:00
parent a16ae88cdc
commit 2250446148
4 changed files with 13 additions and 28 deletions

View File

@@ -125,7 +125,7 @@ hl.bind(mainMod .. " + SPACE " ,hl.dsp.exec_cmd("playerctl play-pause"))
---- 10. Application launching ---- 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(mainMod .. " + F " ,hl.dsp.exec_cmd(browser))
hl.bind("ALT + C" ,hl.dsp.exec_cmd(ipc .. "plugin:clipper openPanel")) 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 ")) 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 -- 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 .. " + 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 .. " + 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(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 = 5})) 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 = 5})) 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("/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 .. " + 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 ")) hl.bind(mainMod .. " + SHIFT + I" ,hl.dsp.exec_cmd("/home/venus/.config/scripts/connectPhone.sh "))

View File

@@ -39,6 +39,9 @@ hl.config = {
inactive_timeout = 0.1, inactive_timeout = 0.1,
}, },
}, },
xwayland = {
force_zero_scaling = true
}
} }

View File

@@ -16,7 +16,7 @@ hl.window_rule({
hl.window_rule({ hl.window_rule({
name = "compiler-window", name = "compiler-window",
match = { tag = "compiler"}, match = { tag = "compiler"},
["col.active_border"] = "0xccaaffee", border_color = "0xccaaffee",
border_size = 2, border_size = 2,
float = false, float = false,
}) })
@@ -25,7 +25,7 @@ hl.window_rule({
name = "gaming", name = "gaming",
match = { match = {
class = "steam", class = "steam",
initialClass = "steam" initial_class = "steam"
}, },
workspace = "special:gaming" workspace = "special:gaming"
}) })
@@ -52,15 +52,12 @@ hl.window_rule( {
no_focus = true, no_focus = true,
}) })
-- xwayland {
-- force_zero_scaling = true
-- })
-- Hyprland-run hl.window_rule( -- Hyprland-run hl.window_rule(
hl.window_rule( { hl.window_rule( {
name = "move-hyprland-run", name = "move-hyprland-run",
match = {class = "hyprland-run"}, match = {class = "hyprland-run"},
move = {20, "(monitor_h-120)"}, move = {20,"monitor_h-120"},
float = true float = true
}) })
@@ -71,23 +68,8 @@ hl.window_rule( {
float = true, float = true,
center = true, center = true,
opacity = 1, opacity = 1,
-- move = cursor_x-10 cursor_y-10 -- move = {"cursor_x-10", "cursor_y-10"},
size ={"(monitor_w*.4)", "(monitor_h*.4)"} 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
})

View File

@@ -45,6 +45,6 @@ local basic = base .. "/basic"
require("basic/looks") require("basic/looks")
require("basic/keybinds") require("basic/keybinds")
require("basic/vars") require("basic/vars")
--require("basic/windows") require("basic/windows")
-- require("plugins") -- require("plugins")
--require("monitors") --require("monitors")