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:
parent
12c2329dbd
commit
ca46d11add
1 changed files with 1 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue