|
|
Creating keyboard shortcuts on the command line
I use a shell script like this to configure the keyboard shortcuts: defaults write -g NSUserKeyEquivalents '{
"Minimize"="\u200b";
"Minimize All"="\u200b";
}'
defaults write com.apple.finder NSUserKeyEquivalents '{
"Show Package Contents"="@\r";
"Tags..."="@t";
}'
defaults write -app Safari NSUserKeyEquivalents '{
"Show Previous Tab"="@j";
"Show Next Tab"="@k";
"Mail Contents of This Page"="\u200b";
}'
defaults write -app Mail NSUserKeyEquivalents '{
"\033Format\033Indentation\033Decrease"="^\Uf702";
"\033Format\033Indentation\033Increase"="^\Uf703";
}'
The shortcut strings use the same format as in DefaultKeyBinding.dict. For example
You can disable a shortcut by assigning the menu item to for example If you specify a menu item as |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|