I have two displays and created for each display with Mission Control several desktops (also known as Spaces):
Display 1: Desktops 1-5
Display 2: Desktops 6-10
I have following related settings adjusted
- Disabled: Automatically rearrange Spaces based on most recent use
- Enabled: Displays have separate Spaces
I want to treat the desktops of each display as 5 pairs:
- Desktops 1,6
- Desktops 2,7
- Desktops 3,8
- Desktops 4,9
- Desktops 5,10
I have already changed the keyboard shortcuts as following (from here):
This works fine after I have deleted ~/Library/Preferences/com.apple.symbolichotkeys.plist
.
How can I cycle through the pairs of desktops with one keyboard shortcut, e.g. ctrl-left/right
?
I am actually testing Amethyst and want to use mod1+n/p
(mod1=ctrl+shift
). I am hoping that I could use AppleScript to increase/decrease the desktop number 'modulo 5'. I am on macOS 10.14.5.
Best Answer
Yabai: tiling window manager with support for spaces
https://github.com/koekeishiya/yabai/wiki#comparison-with-other-window-managers
Requirements of Yabai
Note
Disable the Mission Control Mappings and use this
~/.skhdrc
file with mappings as the OP wants (usesjq
, e.g. install with$ brew install jq
)If you are not interested in a tiling window manager but want to use these mappings, you can choose the layout mode 'float' in
~/.yabairc
: