diff --git a/docs/tiling-wm-experience.md b/docs/tiling-wm-experience.md index 399a5d3b..54369a71 100644 --- a/docs/tiling-wm-experience.md +++ b/docs/tiling-wm-experience.md @@ -133,6 +133,8 @@ Required behavior: - Scrolling layouts are not acceptable. - All ordinary splits are vertical. - Adding windows dynamically redistributes all tiled windows evenly. +- Newly tiled windows are inserted near the currently focused tile, not + appended to the far end of the workspace. - Removing windows dynamically redistributes all tiled windows evenly. - Ordinary use should not require manually managing a split tree. - Tabbed/fullscreen-style monocle layout is available. diff --git a/dotfiles/config/hypr/hyprland.lua b/dotfiles/config/hypr/hyprland.lua index 99154bdd..f80b58c6 100644 --- a/dotfiles/config/hypr/hyprland.lua +++ b/dotfiles/config/hypr/hyprland.lua @@ -228,6 +228,7 @@ local function apply_nstack_config() layout = { orientation = "left", new_on_top = false, + new_near_focused = true, new_is_master = false, no_gaps_when_only = true, special_scale_factor = 0.8, diff --git a/nixos/flake.lock b/nixos/flake.lock index c33567fb..d060534f 100644 --- a/nixos/flake.lock +++ b/nixos/flake.lock @@ -740,16 +740,16 @@ ] }, "locked": { - "lastModified": 1777498784, - "narHash": "sha256-u/FCBctT/CqPYc9uZyI+bhDKQSBCV8L/z8u6IEC2iiU=", + "lastModified": 1778094893, + "narHash": "sha256-8kN2xim0z20GV7BT2xt/WCWER08fLTEaRvQGLn/uH2E=", "owner": "colonelpanic8", "repo": "hyprNStack", - "rev": "e2b07d6a7b472a0dd5bef00a1c0c186ccd2f46c6", + "rev": "7d723e850b2a60e08f10d49e11c4e9f9697317a8", "type": "github" }, "original": { "owner": "colonelpanic8", - "ref": "hyprland-lua-integration", + "ref": "codex/new-near-focused-window", "repo": "hyprNStack", "type": "github" } diff --git a/nixos/flake.nix b/nixos/flake.nix index 9981694c..95e367c1 100644 --- a/nixos/flake.nix +++ b/nixos/flake.nix @@ -97,7 +97,7 @@ }; hyprNStack = { - url = "github:colonelpanic8/hyprNStack?ref=hyprland-lua-integration"; + url = "github:colonelpanic8/hyprNStack?ref=codex/new-near-focused-window"; inputs = { hyprland.follows = "hyprland"; nixpkgs.follows = "nixpkgs";