1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

Merge pull request #780 from kalbasit/update_yabai_sa_script

services/yabai: Remove --check-sa and --install-sa flags
This commit is contained in:
Michael Hoang 2024-01-30 12:32:45 +10:00 committed by GitHub
commit 91b9daf672
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -91,14 +91,7 @@ in
# TODO: [@cmacrae] Handle removal of yabai scripting additions
(mkIf (cfg.enableScriptingAddition) {
launchd.daemons.yabai-sa = {
script = ''
if [ ! $(${cfg.package}/bin/yabai --check-sa) ]; then
${cfg.package}/bin/yabai --install-sa
fi
${cfg.package}/bin/yabai --load-sa
'';
script = "${cfg.package}/bin/yabai --load-sa";
serviceConfig.RunAtLoad = true;
serviceConfig.KeepAlive.SuccessfulExit = false;
};