feat(hyprlua): default to columns, special:magic to scrolling
Session default flips from scrolling to columns; special:magic keeps a downward scrolling layout of its own. layouts.restore() still wins if the user has since picked something else for it via the astal-menu. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TLz6HWsXCwzQ97LrLt2em6main
parent
7a5c715da3
commit
052611abf5
|
|
@ -219,5 +219,9 @@ hl.device({
|
||||||
-- default. Switching a workspace's layout at runtime is done from the astal-menu
|
-- default. Switching a workspace's layout at runtime is done from the astal-menu
|
||||||
-- popup via `hyprctl eval 'layouts.set(ws, name, dir)'`.
|
-- popup via `hyprctl eval 'layouts.set(ws, name, dir)'`.
|
||||||
require("layouts.init")
|
require("layouts.init")
|
||||||
layouts.set_default("scrolling")
|
layouts.set_default("columns")
|
||||||
|
-- special:magic defaults to a downward scrolling layout instead of the session
|
||||||
|
-- default; layouts.restore() below still wins if the user has since picked
|
||||||
|
-- something else for it via the astal-menu.
|
||||||
|
layouts.set("special:magic", "scrolling", "down")
|
||||||
layouts.restore() -- re-apply per-workspace layout choices so a reload doesn't drop them
|
layouts.restore() -- re-apply per-workspace layout choices so a reload doesn't drop them
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue