forked from alrra/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeyboard.sh
executable file
·26 lines (17 loc) · 871 Bytes
/
keyboard.sh
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
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "../../utils.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_info " Keyboard"
execute "defaults write NSGlobalDomain AppleKeyboardUIMode -int 3" \
"Enable full keyboard access for all controls"
execute "defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false" \
"Disable press-and-hold in favor of key repeat"
execute "defaults write NSGlobalDomain 'InitialKeyRepeat_Level_Saved' -int 15" \
"Set delay until repeat"
execute "defaults write NSGlobalDomain KeyRepeat -int 2" \
"Set the key repeat rate to fast"
execute "defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false" \
"Disable smart quotes"
execute "defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false" \
"Disable smart dashes"