LnL7 / nix-darwin

nix modules for darwin
MIT License
3.17k stars 455 forks source link

Is there a better (native) way to enable AppExposé #967

Open jeeftor opened 5 months ago

jeeftor commented 5 months ago
    activationScripts.postUserActivation.text = ''
      # activateSettings -u will reload the settings from the database and apply them to the current session,
      # so we do not need to logout and login again to make the changes take effect.
      /System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u

      # Enable App Exposé
      defaults write com.apple.dock showAppExposeGestureEnabled -bool true
      killall Dock
    '';

I'm just using activation scripts - but wondering if there is a native way. Couldn't find anything in the docs but I could be stupid today :)

Samasaur1 commented 5 months ago

The defaults command can definitely be done natively, but I don't think we have any existing options to run activateSettings -u or killall Dock. In my personal opinion, it's nicer to keep related things together, so I think what you're doing now is probably your best bet.

motschel123 commented 2 months ago

I would like to configure App Exposé with a boolean option somewhere under system.defaults (probably NSGlobalDomain), is this planned anytime soon?