From 75c3674b7761763de30f6833eefb3916f3d43692 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Mon, 11 May 2026 11:17:03 +0100 Subject: [PATCH] hyprland: stop windows yanking the cursor on focus changes Two pairings: - misc.focus_on_activate = false so apps demanding attention show as urgent instead of stealing focus - cursor.no_warps = true so Hyprland never teleports the cursor onto a newly-focused window Co-Authored-By: Claude Opus 4.7 --- settings/hyprland.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 45bc826..d67501b 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -130,6 +130,10 @@ sensitivity = 0; }; + cursor = { + no_warps = true; # don't teleport the cursor on focus changes + }; + dwindle = { preserve_split = true; pseudotile = true; @@ -140,7 +144,10 @@ misc = { disable_hyprland_logo = true; disable_splash_rendering = true; - focus_on_activate = true; + # Apps demanding attention don't get to yank focus — they'll + # show as urgent in the bar instead. Pairs with cursor.no_warps + # below; without that, focus jumps drag the cursor with them. + focus_on_activate = false; vrr = 2; # always on — should engage at the 180 Hz EDID mode vfr = false; # keep compositor ticking, don't idle between frames };