From 668392976f06ba75d8fd9423e80085192de1ab22 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 12 Feb 2024 14:00:42 -0500 Subject: [PATCH] Universeair: Yabai Don't Manage Python Figures --- machines/universeair/yabai.nix | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/machines/universeair/yabai.nix b/machines/universeair/yabai.nix index 7267bbf..fd9cb79 100644 --- a/machines/universeair/yabai.nix +++ b/machines/universeair/yabai.nix @@ -9,6 +9,7 @@ ]; services.yabai = { enable = true; + enableScriptingAddition = true; config = { layout = "bsp"; focus_follows_mouse = "autofocus"; @@ -25,19 +26,7 @@ yabai -m rule --add app='System Settings' manage=off yabai -m rule --add app='Boot Camp Assistant' manage=off yabai -m rule --add app='System Information' manage=off + yabai -m rule --add title='^Figure' manage=off ''; }; - - # https://github.com/IvarWithoutBones/dotfiles/blob/main/modules/darwin/yabai/default.nix - # The scripting addition needs root access to load, which we want to do automatically when logging in. - # Disable the password requirement for it so that a service can do so without user interaction. - environment.etc."sudoers.d/yabai-load-sa".text = '' - universelaptop ALL = (root) NOPASSWD: sha256:${builtins.hashFile "sha256" "${pkgs.yabai}/bin/yabai"} ${pkgs.yabai}/bin/yabai - ''; - - launchd.user.agents.yabai-load-sa = { - path = [ pkgs.yabai config.environment.systemPath ]; - command = "/usr/bin/sudo ${pkgs.yabai}/bin/yabai --load-sa"; - serviceConfig.RunAtLoad = true; - }; }