scroll layout

This commit is contained in:
iris committed 2026-08-03 13:50:39 -04:00
1 parent 75c20f068b
commit 1589302d6d
1 file changed
+16 -8
+16 -8
View File
@@ -22,10 +22,10 @@ hl.bind("SHIFT + print", hl.dsp.exec_cmd("grim - | swappy -f -"))
hl.bind(mod .. " + space", hl.dsp.window.float())
local mov_keys = {
{ "n", "left" },
{ "e", "down" },
{ "i", "up" },
{ "o", "right" }
{ "n", "l" },
{ "e", "d" },
{ "i", "u" },
{ "o", "r" }
}
local wss = {
@@ -37,7 +37,7 @@ local wss = {
{ 6, "w" },
{ 7, "f" },
{ 8, "p" },
{ 9, "z" },
{ 9, "z" },
{ 10, "x" },
{ 11, "c" },
}
@@ -54,8 +54,10 @@ end
for _, p in ipairs(mov_keys) do
local key = p[1]
local dir = p[2]
hl.bind(mod .. " + " .. key, hl.dsp.focus({ direction = dir }))
hl.bind(mod .. " + SHIFT + " .. key, hl.dsp.window.move({ direction = dir }))
hl.bind(mod .. " + " .. key, hl.dsp.layout("focus " .. dir))
hl.bind(mod .. " + SHIFT + " .. key, hl.dsp.layout("swapcol " .. dir))
-- hl.bind(mod .. " + " .. key, hl.dsp.focus({ direction = dir }))
-- hl.bind(mod .. " + SHIFT + " .. key, hl.dsp.window.move({ direction = dir }))
end
for _, p in ipairs(wss) do
@@ -103,7 +105,13 @@ hl.config({
col = {
active_border = active_col,
inactive_border = inactive_col
}
},
layout = "scrolling",
},
scrolling = {
fullscreen_on_one_column = true,
column_width = 1.0,
direction = "right",
},
decoration = {
rounding = 10,