Skip to content

Commit

Permalink
Merge pull request #780 from kalbasit/update_yabai_sa_script
Browse files Browse the repository at this point in the history
services/yabai: Remove --check-sa and --install-sa flags
  • Loading branch information
Enzime authored Jan 30, 2024
2 parents 00538ee + 30311b6 commit 91b9daf
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions modules/services/yabai/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 91b9daf

Please sign in to comment.