Skip to content

Commit

Permalink
services/yabai: Remove --check-sa and --install-sa flags
Browse files Browse the repository at this point in the history
The --check-sa and --install-sa flags were removed in favor of
--load-sa as of version 5.0.0 of Yabai.

https://github.com/koekeishiya/yabai/blob/ee0137f37ded4309cb40b7f38817b5abd90fb592/CHANGELOG.md?plain=1#L83
  • Loading branch information
kalbasit committed Sep 14, 2023
1 parent 4496ab2 commit 30311b6
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 @@ -90,14 +90,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 30311b6

Please sign in to comment.