Created
September 29, 2024 02:55
-
-
Save David-Elizondo/45d95701c65551427be707fa991d9716 to your computer and use it in GitHub Desktop.
MacOS Sequoia: Window Tiling shortcuts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo 'Only works on MacOS Sequoia!' | |
echo 'Check PreReq in script before running...(Maybe to late?)' | |
echo '' | |
echo 'Keyboard shortcuts being setup..' | |
echo 'Main Keys are [Control] and [Option]' | |
echo 'Hold Main Keys and Each Arrow Key (Move Window)' | |
echo 'Hold Main Keys and ([u],[i],[j], or [k]) Key (Moves window to corner)' | |
echo 'Hold Main Keys and ([Return], [C], or [Delete]) Key (Full screen, Center, and Restore)' | |
echo '' | |
<<comment | |
# Prereq | |
when running: | |
% defaults read com.apple.universalaccess.plist com.apple.custommenu.apps | |
you should get: | |
( | |
NSGlobalDomain | |
) | |
if you don't run this to get it setup: | |
% defaults write com.apple.universalaccess.plist com.apple.custommenu.apps -array-add "NSGlobalDomain" | |
comment | |
defaults write -globalDomain NSUserKeyEquivalents -dict-add "\033Window\033Center" "~^c" | |
defaults write -globalDomain NSUserKeyEquivalents -dict-add "\033Window\033Fill" "~^\\U21a9" | |
defaults write -globalDomain NSUserKeyEquivalents -dict-add "\033Window\033Move & Resize\033Bottom" "~^\\U2193" | |
defaults write -globalDomain NSUserKeyEquivalents -dict-add "\033Window\033Move & Resize\033Bottom Left" "~^j" | |
defaults write -globalDomain NSUserKeyEquivalents -dict-add "\033Window\033Move & Resize\033Bottom Right" "~^k" | |
defaults write -globalDomain NSUserKeyEquivalents -dict-add "\033Window\033Move & Resize\033Left" "~^\\U2190" | |
defaults write -globalDomain NSUserKeyEquivalents -dict-add "\033Window\033Move & Resize\033Return to Previous Size" "~^\\b" | |
defaults write -globalDomain NSUserKeyEquivalents -dict-add "\033Window\033Move & Resize\033Right" "~^\\U2192" | |
defaults write -globalDomain NSUserKeyEquivalents -dict-add "\033Window\033Move & Resize\033Top" "~^\\U2191" | |
defaults write -globalDomain NSUserKeyEquivalents -dict-add "\033Window\033Move & Resize\033Top Left" "~^u" | |
defaults write -globalDomain NSUserKeyEquivalents -dict-add "\033Window\033Move & Resize\033Top Right" "~^i" | |
echo 'You must restart each app to for keyboard shortcuts to take effect' | |
echo 'Or just restart ¯\_(ツ)_/¯' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment