thanks a lot for your link, did not know about this amazing tool, for those who still need a cure, I made instruction:
Few steps need to be done:
disable SIP:
- Load your in recovery mode hold power (top right corner laptop button) until message options received chose “Options”
- Open terminal - utils > terminal and write
csrutil disable
and check if it is disabledcsrutil status
and restart computer
Install custom fork of yabai
utility made by this person Apple Silicon M1 · Issue #725 · koekeishiya/yabai · GitHub by command: brew install --HEAD xorpse/formulae/yabai
Most likely if you read this few months after yabai
have already official support of m1 so you might not need to use fork and generate self signed certificate.
Generate certificate by this instruction Installing yabai (from HEAD) · koekeishiya/yabai Wiki · GitHub
Run sudo nvram boot-args=-arm64e_preview_abi
at the terminal and restart computer. Run yabai
service by cmd brew services start yabai
.
Install and run skhd
utility to bind hotkey with shell commands (follow GitHub - koekeishiya/skhd: Simple hotkey daemon for macOS). Create ~/.skhdrc
to bind workspace focus commands, for me it is:
alt - 1 : yabai -m space --focus 1
alt - 2 : yabai -m space --focus 2
alt - 3 : yabai -m space --focus 3
alt - 4 : yabai -m space --focus 4
alt - 5 : yabai -m space --focus 5
alt - 6 : yabai -m space --focus 6
# toggle window zoom
alt - 0 : yabai -m query --spaces --window | grep '"type":"float"' && yabai -m space --layout bsp;\
yabai -m query --windows --window | grep '"floating":1' && yabai -m window --toggle float;\
yabai -m window --toggle zoom-fullscreen;
# change active windows on the current workspace
alt - i : yabai -m window --focus prev
alt - o : yabai -m window --focus next
Enjoy instant workspace transition