From fac225c2096bc72275789f1201dcd23719be8124 Mon Sep 17 00:00:00 2001 From: Ian Macalinao Date: Tue, 30 Jul 2024 12:16:37 +0800 Subject: [PATCH] fix yabai for virtual devices --- nix/home/os-specific/darwin.nix | 9 ++++++++- nix/home/static/yabairc | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/nix/home/os-specific/darwin.nix b/nix/home/os-specific/darwin.nix index 5938f10..353b9b8 100644 --- a/nix/home/os-specific/darwin.nix +++ b/nix/home/os-specific/darwin.nix @@ -1,4 +1,9 @@ -{ pkgs, lib, systemConfig, ... }: +{ pkgs +, lib +, systemConfig +, config +, ... +}: let isM1 = systemConfig.igm.isM1; @@ -33,4 +38,6 @@ in size = 12; }; }; + + programs.zsh.sessionVariables.ANDROID_HOME = "${config.home.homeDirectory}/Library/Android/sdk"; } diff --git a/nix/home/static/yabairc b/nix/home/static/yabairc index 36e32aa..5e2203f 100755 --- a/nix/home/static/yabairc +++ b/nix/home/static/yabairc @@ -6,3 +6,4 @@ yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa" yabai -m config layout bsp yabai -m rule --add app="^Simulator" manage=off +yabai -m rule --add app="^qemu-system-aarch64" manage=off