-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup-app-keybindings
executable file
·43 lines (32 loc) · 2.19 KB
/
setup-app-keybindings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#! /bin/zsh
set -e
# http://hints.macworld.com/article.php?story=20131123074223584
# @ for Command, $ for Shift, ~ for Alt and ^ for Ctrl
###############################################################################
#
# Sketch
# The pin commands get in the way of Emacs key bindings. I couldn't come up with anything better, so I'm just removing
# the bindings for now.
defaults write com.bohemiancoding.sketch3.plist NSUserKeyEquivalents -dict-add 'Pin Top' -string 'INVALID'
defaults write com.bohemiancoding.sketch3.plist NSUserKeyEquivalents -dict-add 'Pin Bottom' -string 'INVALID'
defaults write com.bohemiancoding.sketch3.plist NSUserKeyEquivalents -dict-add 'Pin Right' -string 'INVALID'
defaults write com.bohemiancoding.sketch3.plist NSUserKeyEquivalents -dict-add 'Pin Left' -string 'INVALID'
defaults write com.bohemiancoding.sketch3.plist NSUserKeyEquivalents -dict-add 'Fix Width' -string 'INVALID'
defaults write com.bohemiancoding.sketch3.plist NSUserKeyEquivalents -dict-add 'Fix Height' -string 'INVALID'
defaults write com.bohemiancoding.sketch3.plist NSUserKeyEquivalents -dict-add 'Show Slices' -string 'INVALID'
# Free up ^p for previous-line
defaults write com.bohemiancoding.sketch3.plist NSUserKeyEquivalents -dict-add 'Show Pixels on Zoom' -string '^$p'
# Free up shift command V for PasteBot
defaults write com.bohemiancoding.sketch3.plist NSUserKeyEquivalents -dict-add 'Paste over Selection' -string '^@v'
# Craft sets up some annoying key bindings
defaults write com.bohemiancoding.sketch3.plist NSUserKeyEquivalents -dict-add 'Add Hotspot to Layer' -string 'INVALID'
defaults write com.bohemiancoding.sketch3.plist NSUserKeyEquivalents -dict-add 'Toggle View Hotspots' -string 'INVALID'
###############################################################################
#
# Affinity Photo
# Wasn't able to get this to take from the command line. It only seems to work via the UI in System Preferences
#defaults write com.seriflabs.affinityphoto.plist NSUserKeyEquivalents -dict-add 'Convert To Curves' -string '@~$9'
###############################################################################
#
# Notes
defaults write com.apple.Notes.plist NSUserKeyEquivalents -dict-add 'Bulleted List' -string '$@u'