From f4c6e2238a6933b09795c3a9ee73d7ac32de4751 Mon Sep 17 00:00:00 2001 From: rope Date: Mon, 17 Aug 2026 09:45:51 +0100 Subject: [PATCH] hyprland: warp cursor onto scratchpads so they get focus on toggle Co-Authored-By: Claude Opus 5 --- settings/hyprland.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 0718d0e..6a93dc4 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -202,6 +202,11 @@ in cursor = { no_warps = true; + # Scratchpads are floated at 80% inset, so opening one leaves the + # cursor over the window underneath and follow_mouse=1 hands focus + # straight back to it. Warp onto the special workspace's window + # instead. 2, not 1: 1 obeys no_warps above and would no-op. + warp_on_toggle_special = 2; # Force real HW cursor plane (default "auto" can fall back to a # software cursor on i915 → cursor waits a full repaint = laggy). no_hardware_cursors = false;