From efb2ae0425c1db6d9481c20327413abed52a475e Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sat, 6 Jul 2024 15:41:18 -0400 Subject: [PATCH] fix(desktop): focus mainMonitor on launch --- modules/desktop/desktop-environment/home/inputs.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/desktop/desktop-environment/home/inputs.nix b/modules/desktop/desktop-environment/home/inputs.nix index eac02acb..0270d0b0 100644 --- a/modules/desktop/desktop-environment/home/inputs.nix +++ b/modules/desktop/desktop-environment/home/inputs.nix @@ -20,12 +20,13 @@ in { cursor = { no_hardware_cursors = osConfig.nvidia.enable; hide_on_touch = true; - default_monitor = - if mainMonitor != null - then mainMonitor - else ""; }; + exec-once = + if mainMonitor != null + then ["hyprctl dispatch focusmonitor ${mainMonitor}"] + else []; + input = { # Keyboard kb_layout = xkb.layout;