/
defaults.nix
82 lines (62 loc) · 2.26 KB
/
defaults.nix
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{ ... }:
{
system.keyboard = {
enableKeyMapping = true;
# use caps lock as ctrl instead of YELLING
remapCapsLockToControl = true;
};
system.defaults = {
NSGlobalDomain = {
# expand the save panel by default
NSNavPanelExpandedStateForSaveMode = true;
NSNavPanelExpandedStateForSaveMode2 = true;
# Disable automatic typography options I find annoying while typing code
NSAutomaticCapitalizationEnabled = false;
NSAutomaticDashSubstitutionEnabled = false;
NSAutomaticPeriodSubstitutionEnabled = false;
NSAutomaticQuoteSubstitutionEnabled = false;
# enable tap-to-click (mode 1)
"com.apple.mouse.tapBehavior" = 1;
# Enable full keyboard access for all controls
# (e.g. enable Tab in modal dialogs)
AppleKeyboardUIMode = 3;
# Disable press-and-hold for keys in favor of key repeat
ApplePressAndHoldEnabled = false;
# Set a very fast keyboard repeat rate
KeyRepeat = 2;
InitialKeyRepeat = 10;
# Enable subpixel font rendering on non-Apple LCDs
# Reference: https://github.com/kevinSuttle/macOS-Defaults/issues/17#issuecomment-266633501
AppleFontSmoothing = 1;
# Finder: show all filename extensions
AppleShowAllExtensions = true;
};
finder = {
# show full POSIX path as Finder window title
_FXShowPosixPathInTitle = true;
# disable the warning when changing a file extension
FXEnableExtensionChangeWarning = false;
};
trackpad = {
# drag with three fingers
TrackpadThreeFingerDrag = true;
};
dock = {
# set the icon size of all dock items
tilesize = 40;
# enable spring loading (hold a dragged file over an icon to drop/open it there)
enable-spring-load-actions-on-all-items = true;
# show indicator lights for open applications
show-process-indicators = true;
# don't automatically rearrange spaces based on the most recent one
mru-spaces = false;
# show hidden applications as translucent
showhidden = true;
};
screencapture.location = "/Users/brianhicks/Downloads";
LaunchServices = {
# Disable the "Are you sure you want to open this application?" dialog
LSQuarantine = false;
};
};
}