aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2012-08-12 12:26:04 +0200
committerMathias Bynens <mathias@qiwi.be>2012-08-12 12:26:04 +0200
commitb9fa939cefe4f76336ce12ab83108c4e1d00e242 (patch)
tree7eeec092cbe89c3822c3f490347d63d82a1189fd
parent06c9e889c2882daf07fd86f59739078ac4f40dd5 (diff)
downloaddotfiles-b9fa939cefe4f76336ce12ab83108c4e1d00e242.tar.gz
dotfiles-b9fa939cefe4f76336ce12ab83108c4e1d00e242.tar.bz2
dotfiles-b9fa939cefe4f76336ce12ab83108c4e1d00e242.zip
.osx: Enable access for assistive devices
-rwxr-xr-x.osx6
1 files changed, 6 insertions, 0 deletions
diff --git a/.osx b/.osx
index b653605..32182ce 100755
--- a/.osx
+++ b/.osx
@@ -99,6 +99,12 @@ defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" -int
# (e.g. enable Tab in modal dialogs)
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
+# Enable access for assistive devices
+echo -n 'a' | sudo tee /private/var/db/.AccessibilityAPIEnabled > /dev/null 2>&1
+sudo chmod 444 /private/var/db/.AccessibilityAPIEnabled
+# TODO: avoid GUI password prompt somehow (http://apple.stackexchange.com/q/60476/4408)
+#sudo osascript -e 'tell application "System Events" to set UI elements enabled to true'
+
# Disable press-and-hold for keys in favor of key repeat
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false