changed some bindings and layout stuff, added snapping for floating windows

This commit is contained in:
2026-06-12 20:34:19 -05:00
parent 2284141437
commit ba1d8d9428

View File

@@ -76,6 +76,11 @@ hl.config({
resize_on_border = false,
allow_tearing = false,
layout = "dwindle",
snap = {
enabled = true,
monitor_gap = 20,
respect_gaps = true,
},
},
decoration = {
@@ -104,14 +109,21 @@ hl.config({
enabled = true,
},
dwindle = {
preserve_split = true,
},
master = {
new_status = "master",
orientation = "bottom",
always_keep_position = true,
},
misc = {
force_default_wallpaper = -1,
disable_hyprland_logo = true,
vrr = 3,
},
})
-----------------------
@@ -166,11 +178,12 @@ local mainMod = "SUPER"
hl.bind(mainMod .. " + CTRL + RETURN", hl.dsp.exec_cmd(terminal))
hl.bind(mainMod .. " + ESCAPE", hl.dsp.window.close())
hl.bind(mainMod .. " + SHIFT + E", hl.dsp.exec_cmd("exit"))
hl.bind(mainMod .. " + SHIFT + E", hl.dsp.exit())
hl.bind(mainMod .. " + F", hl.dsp.exec_cmd(fileManager))
hl.bind(mainMod .. " + V", hl.dsp.window.float({ action = "toggle" }))
hl.bind(mainMod .. " + RETURN", hl.dsp.exec_cmd(menu))
hl.bind(mainMod .. " + TAB", hl.dsp.focus({ workspace = "previous" }))
hl.bind(mainMod .. " + S", hl.dsp.layout("togglesplit"))
-- Move focus with mainMod + arrow keys
hl.bind(mainMod .. " + left", hl.dsp.focus({ direction = "left" }))
@@ -220,3 +233,19 @@ hl.window_rule({
float = true,
})
hl.window_rule({
name = "second_monitor",
match = { workspace = 10 },
float = true,
size = {"monitor_w - 8", 850},
move = {4, 500}
})
hl.workspace_rule({
workspace = "10",
monitor = "HDMI-A-1",
default = true,
layout = "master",
layout_opts = {orientation = "bottom"},
})