From 97116c78eadea6c4cbabe7bf99bee76865dad31c Mon Sep 17 00:00:00 2001 From: winston Date: Sat, 23 Sep 2023 00:16:10 +0200 Subject: [PATCH] fix(yabai): hotfix for focus workspace on macOS >14 --- machines/common/darwin/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/machines/common/darwin/default.nix b/machines/common/darwin/default.nix index 93634d7..6d2fbf8 100644 --- a/machines/common/darwin/default.nix +++ b/machines/common/darwin/default.nix @@ -1,4 +1,8 @@ -{lib, ...}: { +{ + config, + lib, + ... +}: { # manipulate the global /etc/zshenv for PATH, etc. programs.zsh.enable = true; @@ -98,7 +102,7 @@ ctrl - left : yabai -m space --focus prev ctrl - right : yabai -m space --focus next # switch to space - ${mapKeymaps "cmd + ctrl - Num : yabai -m space --focus Num"} + ${mapKeymaps "cmd + ctrl - Num : ${config.services.skhd.package}/bin/skhd -k 'ctrl + shift + alt + cmd - Num'"} # send window to desktop and follow focus ${mapKeymaps "cmd + shift - Num : yabai -m window --space Num; yabai -m space --focus Num"} '';