31 lines
1.4 KiB
Lua
31 lines
1.4 KiB
Lua
-- Scrolling: an infinite row/column of windows you scroll through. The session
|
|
-- default. Adjustable from the menu:
|
|
-- * direction (down by default) — see M.set() in init.lua.
|
|
-- * focus_fit_method 0/1 ("Centered follow") — see M.set_fit(); when centered the
|
|
-- focused column is centred and the previous/next columns peek in from the sides.
|
|
--
|
|
-- column_width is the default window size along the scroll axis, as a fraction of the
|
|
-- monitor (0.76 = 76% of the monitor's width for a horizontal tape, or its height for a
|
|
-- vertical one — the layout applies it to whichever axis `direction` scrolls). Keeping it
|
|
-- < 1.0 leaves the prev/next windows peeking in on-screen and clickable;
|
|
-- fullscreen_on_one_column lets a lone window still fill the screen, so it costs nothing
|
|
-- when a window is alone.
|
|
return {
|
|
name = "scrolling",
|
|
label = "Scrolling",
|
|
backend = "scrolling", -- hyprland general.layout value
|
|
directional = true,
|
|
dirs = { "down", "up", "right", "left" },
|
|
default_dir = "down",
|
|
fit_method = true, -- exposes the "Centered follow" toggle in the menu
|
|
config = {
|
|
scrolling = {
|
|
direction = "down",
|
|
column_width = 0.76, -- 76% of the monitor along the scroll axis
|
|
focus_fit_method = 1,
|
|
follow_focus = true,
|
|
fullscreen_on_one_column = true,
|
|
},
|
|
},
|
|
}
|