1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-31 04:04:45 +00:00

yabai: remove unnecessary yabai-sa daemon

Scripting additions are loaded in the Yabai config file.
This commit is contained in:
Veselin Ivanov 2024-12-15 15:37:23 +02:00
parent 12c2329dbd
commit ca46d11add
No known key found for this signature in database

View file

@ -10,6 +10,7 @@ let
(p: v: "yabai -m config ${p} ${toString v}")
opts);
# TODO: [@cmacrae] Handle removal of yabai scripting additions
scriptingAdditionConfig = ''
yabai -m signal --add event=dock_did_restart action='sudo yabai --load-sa'
sudo yabai --load-sa
@ -92,14 +93,7 @@ in
};
})
# TODO: [@cmacrae] Handle removal of yabai scripting additions
(mkIf (cfg.enableScriptingAddition) {
launchd.daemons.yabai-sa = {
script = "${cfg.package}/bin/yabai --load-sa";
serviceConfig.RunAtLoad = true;
serviceConfig.KeepAlive.SuccessfulExit = false;
};
environment.etc."sudoers.d/yabai".source = pkgs.runCommand "sudoers-yabai" {} ''
YABAI_BIN="${cfg.package}/bin/yabai"
SHASUM=$(sha256sum "$YABAI_BIN" | cut -d' ' -f1)