From 1589302d6d340a2d23b2401ca40d82c542098e5c Mon Sep 17 00:00:00 2001 From: shadow cat Date: Mon, 3 Aug 2026 13:50:39 -0400 Subject: [PATCH] scroll layout --- hyprland.lua | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/hyprland.lua b/hyprland.lua index 5b5176d..6426d03 100644 --- a/hyprland.lua +++ b/hyprland.lua @@ -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,