forked from alrra/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
keyboard.sh
executable file
·38 lines (25 loc) · 1.26 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "../../utils.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_in_purple "\n Keyboard\n\n"
execute "defaults write -g AppleKeyboardUIMode -int 3" \
"Enable full keyboard access for all controls"
execute "defaults write -g ApplePressAndHoldEnabled -bool false" \
"Disable press-and-hold in favor of key repeat"
execute "defaults write -g 'InitialKeyRepeat_Level_Saved' -int 10" \
"Set delay until repeat"
execute "defaults write -g KeyRepeat -int 1" \
"Set the key repeat rate to fast"
execute "defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool false" \
"Disable automatic capitalization"
execute "defaults write -g NSAutomaticSpellingCorrectionEnabled -bool false" \
"Disable automatic correction"
execute "defaults write -g NSAutomaticPeriodSubstitutionEnabled -bool false" \
"Disable automatic period substitution"
execute "defaults write -g NSAutomaticDashSubstitutionEnabled -bool false" \
"Disable smart dashes"
execute "defaults write -g NSAutomaticQuoteSubstitutionEnabled -bool false" \
"Disable smart quotes"
execute "defaults write com.apple.HIToolbox AppleFnUsageType -int 2" \
"Remap the emoji picker to the Fn key"