From 052611abf5dae5f825221feb1cce31722152509e Mon Sep 17 00:00:00 2001 From: The_miro Date: Thu, 9 Jul 2026 16:48:12 +0200 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_01TLz6HWsXCwzQ97LrLt2em6 --- desktopenvs/hyprlua/hypr/hyprland.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/desktopenvs/hyprlua/hypr/hyprland.lua b/desktopenvs/hyprlua/hypr/hyprland.lua index f3f6161..b585f1d 100644 --- a/desktopenvs/hyprlua/hypr/hyprland.lua +++ b/desktopenvs/hyprlua/hypr/hyprland.lua @@ -219,5 +219,9 @@ hl.device({ -- default. Switching a workspace's layout at runtime is done from the astal-menu -- popup via `hyprctl eval 'layouts.set(ws, name, dir)'`. 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