From 81a365775905817cba2d5ec7b329297fbdaa4de4 Mon Sep 17 00:00:00 2001 From: John Ogle Date: Thu, 16 Oct 2025 10:00:12 -0700 Subject: [PATCH] [darwin] Add AutoRaise provides focus-follows-mouse --- home/home-darwin-work.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/home/home-darwin-work.nix b/home/home-darwin-work.nix index e83aab7..6ca883b 100644 --- a/home/home-darwin-work.nix +++ b/home/home-darwin-work.nix @@ -14,6 +14,21 @@ in home.homeDirectory = lib.mkForce "/Users/johno"; home.stateVersion = "24.05"; + # System packages + home.packages = with pkgs; [ + autoraise + ]; + + # Auto-start autoraise on login + launchd.agents.autoraise = { + enable = true; + config = { + ProgramArguments = [ "${pkgs.autoraise}/bin/AutoRaise" ]; + RunAtLoad = true; + KeepAlive = true; + }; + }; + # Override Darwin-incompatible settings from base role programs.rbw.settings.pinentry = lib.mkForce pkgs.pinentry_mac;