-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmacos.yml
More file actions
854 lines (727 loc) · 19.7 KB
/
macos.yml
File metadata and controls
854 lines (727 loc) · 19.7 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
when: os == "macos"
backup:
syncthing-conflicts:
files:
- source: files/karabiner.json
destination: ~/.config/karabiner/karabiner.json
directories:
- ~/Screenshots/{{ machine }}
packages:
# base
# NOTE: only if required:
# - coreutils
# - moreutils
# - net-tools
# - inetutils
# - gawk
# - util-linux
- rename
- less
- wget
- htop
- whois
- openssh
- homebrew/cask/macfuse
- gromgit/fuse/sshfs-mac
- neovim
- p7zip
- rsync
- lsof
- nmap
- tmux
- homebrew/cask/rar
- zip
- lzip
- fdupes
- jq
- python-yq
- colordiff
- openssl
- watch
- watchexec
- parallel
- flock
# - zsh # should probably just use system version
- zsh-completions
- zsh-syntax-highlighting
- zsh-autosuggestions
- zshdb
- bash
- bash-completion@2
- brew-cask-completion
- launchctl-completion
- open-completion
- bashdb
- tree
- netcat
- socat
- fzf
- fd
- calc
- bat
- bat-extras
- httpstat
- ripgrep
- age
- showkey
- exiftool
- trippy
- sponge
# frontend
- homebrew/cask/karabiner-elements
- homebrew/cask/ungoogled-chromium
- homebrew/cask/firefox
- homebrew/cask/1password
- homebrew/cask/1password-cli
- homebrew/cask/spotify
- homebrew/cask/adobe-acrobat-reader
- homebrew/cask/meetingbar
- homebrew/cask/steam
- homebrew/cask/parsec
- homebrew/cask/fontforge-app
- homebrew/cask/nordvpn
- homebrew/cask/iina
- homebrew/cask/zed
- homebrew/cask/ghostty
- homebrew/cask/affinity
- homebrew/cask/inkscape
- baobab
- kap
- homebrew/cask/font-inconsolata
- homebrew/cask/element
# syncthing
- homebrew/cask/syncthing-app
# games
- homebrew/cask/jagex # open /opt/homebrew/Caskroom/jagex/1.17.2/Jagex\ Launcher\ Installer.app
- homebrew/cask/runelite
# development
- git
- gh
- git-delta
- cloc
- pup
- wrk
- pkg-config
- homebrew/cask/docker-desktop
- homebrew/cask/visual-studio-code
- homebrew/cask/sublime-text
- homebrew/cask/android-studio
# - homebrew/cask/sequel-ace
- cliclick
- dive
- shellcheck
- shfmt
# applescript debugging (trialware)
# - homebrew/cask/script-debugger
- node
- doggo
- mysql
- postgresql
- planetscale/tap/pscale
- mise
- vercel-cli
- yamllint
- sops
- neonctl
- flyctl
- mycli
- pgloader
- ngrok/ngrok/ngrok
- ffmpeg
- python
- pipx
# - anyzig
# audio
# TODO: 2ch most reasonable 99% of the time, may want 64ch version also tho
- blackhole-2ch
rustup:
# TODO: switch to 'Zed' once it's ready for daily use:
default.programs:
.todo: Visual Studio Code
.txt: Visual Studio Code
.sh: Visual Studio Code
.md: Visual Studio Code
.yml: Visual Studio Code
.json: Visual Studio Code
.xml: Visual Studio Code
.csv: Visual Studio Code
.svg: Visual Studio Code
.ts: Visual Studio Code
.tsx: Visual Studio Code
.js: Visual Studio Code
.jsx: Visual Studio Code
.reg: Visual Studio Code
.prisma: Visual Studio Code
.lua: Visual Studio Code
.mkv: IINA
.mp4: IINA
.avi: IINA
.mov: IINA
.wmv: IINA
.webm: IINA
http://: Chromium
file://: Finder
macos.terminal.theme: files/mine.terminal
macos.hide:
- ~/Music
- ~/Public
- ~/Documents
- ~/Movies
- ~/Pictures
- ~/Desktop
macos.show:
- /Volumes
macos.night-shift:
schedule:
day:
hour: 7
minute: 0
night:
hour: 22
minute: 0
macos.pmset:
# NOTE: check supported fields with: pmset -g custom
all:
standby: 1
disksleep: 10
hibernatemode: 0
battery:
displaysleep: 15
sleep: 15
ac:
displaysleep: 0
sleep: 0
macos.plist.merge:
# finder ViewSettings
- plist: "{{ home }}/Library/Preferences/com.apple.finder.plist"
value:
StandardViewSettings:
IconViewSettings:
arrangeBy: grid
iconSize: 64
ListViewSettings:
textSize: 14
FK_StandardViewSettings:
IconViewSettings:
arrangeBy: grid
iconSize: 64
ListViewSettings:
textSize: 13
DesktopViewSettings:
IconViewSettings:
arrangeBy: grid
iconSize: 64
textSize: 14
macos.defaults:
# % System and Menubar
# Hide user menu item
- domain: /Library/Preferences/.GlobalPreferences
name: MultipleSessionEnabled
value: false
resets: SystemUIServer
# Set Menubar Date Format
# TODO: does this still work? defaults write NSGlobalDomain AppleICUTimeFormatStrings -dict-add "2" "HH:mm:ss"
# TODO: figure out new settings: defaults read com.apple.menuextra.clock
# {
# FlashDateSeparators = 0;
# ShowAMPM = 1;
# ShowDate = 0;
# ShowDayOfWeek = 1;
# ShowSeconds = 0;
# }
# - domain: com.apple.menuextra.clock
# name: DateFormat
# value: EEE MMM d h:mm a
# System Preferences > General > Automatically hide and show the menu bar
- domain: NSGlobalDomain
name: _HIHideMenuBar
value: false
resets: SystemUIServer
# System Preferences > Desktop & Dock > Menu Bar > Automatically hide and show the menu bar
- domain: NSGlobalDomain
name: AppleMenuBarVisibleInFullscreen
value: true
resets: SystemUIServer # / Dock?
# - System Settings > Desktop and Dock > Windows > Tiled windows have margin: off
- domain: com.apple.WindowManager
name: EnableTiledWindowMargins
value: false
resets: SystemUIServer
# light mode
- domain: NSGlobalDomain
name: AppleInterfaceStyle
value: Light
resets: Dock
- domain: NSGlobalDomain
name: AppleInterfaceStyleSwitchesAutomatically
value: false
resets: Dock
# System Preferences > General > Accent color
# Color AppleAquaColorVariant AppleAccentColor
# Red 1 0
# Orange 1 1
# Yellow 1 2
# Green 1 3
# Purple 1 5
# Pink 1 6
# Blue 1 deleted
# Graphite 6 -1
- domain: NSGlobalDomain
name: AppleAccentColor
value: 3
resets: Dock
- domain: NSGlobalDomain
name: AppleAquaColorVariant
value: 1
resets: Dock
# System Preferences > General > Highlight color
# Color AppleHighlightColor
# Red "1.000000 0.733333 0.721569 Red"
# Orange "1.000000 0.874510 0.701961 Orange"
# Yellow "1.000000 0.937255 0.690196 Yellow"
# Green "0.752941 0.964706 0.678431 Green"
# Purple "0.968627 0.831373 1.000000 Purple"
# Pink "1.000000 0.749020 0.823529 Pink"
# Blue deleted
# Graphite "0.847059 0.847059 0.862745 Graphite"
- domain: NSGlobalDomain
name: AppleHighlightColor
value: 0.752941 0.964706 0.678431 Green
resets: Dock
# Increase window resize speed for Cocoa applications
- domain: NSGlobalDomain
name: NSWindowResizeTime
value: 0.001
# Expand save panel by default
- domain: NSGlobalDomain
name: NSNavPanelExpandedStateForSaveMode
value: true
- domain: NSGlobalDomain
name: NSNavPanelExpandedStateForSaveMode2
value: true
# Save to disk (not to iCloud) by default
- domain: NSGlobalDomain
name: NSDocumentSaveNewDocumentsToCloud
value: false
# Disable the "Are you sure you want to open this application?" dialog
- domain: com.apple.LaunchServices
name: LSQuarantine
value: false
# Disable automatic termination of inactive apps
- domain: NSGlobalDomain
name: NSDisableAutomaticTermination
value: true
# Disable animations when opening and closing windows.
- domain: NSGlobalDomain
name: NSAutomaticWindowAnimationsEnabled
value: false
# Set sidebar icon size to medium
- domain: NSGlobalDomain
name: NSTableViewDefaultSizeMode
value: 2
# Always show scrollbars
- domain: NSGlobalDomain
name: AppleShowScrollBars
value: Always
# Disable the over-the-top focus ring animation
- domain: NSGlobalDomain
name: NSUseAnimatedFocusRing
value: false
# Adjust toolbar title rollover delay
- domain: NSGlobalDomain
name: NSToolbarTitleViewRolloverDelay
value: 0
# Disable Resume system-wide
- domain: com.apple.systempreferences
name: NSQuitAlwaysKeepsWindows
value: false
# Context menu item for showing the Web Inspector in web views
- domain: NSGlobalDomain
name: WebKitDeveloperExtras
value: true
# Elastic (rubber band) over-scrolling
- domain: NSGlobalDomain
name: NSScrollViewRubberbanding
value: false
# Reopen windows when logging back in
- domain: com.apple.loginwindow
name: TALLogoutSavesState
value: false
# Show Input menu in menu bar
- domain: com.apple.TextInputMenu
name: visible
value: false
# Show Percent on Battery
- domain: com.apple.menuextra.battery
name: ShowPercent
value: "YES"
resets: SystemUIServer
# NOTE: disables auto switching between desktop (mostly). Which means the
# random switches macos likes to do will stop, but also means intentional
# switching to focus an app may not always work. Plus there are some more
# subtle bugs with this that can be annoying at times.
- domain: com.apple.dock
name: workspaces-auto-swoosh
value: false
resets: Dock
# % Bluetooth
# Increase sound quality for Bluetooth headphones/headsets
- domain: com.apple.BluetoothAudioAgent
name: Apple Bitpool Min (editable)
value: 40
resets: coreaudiod
# % Keyboard and input
# Enable full keyboard access for all controls (Tab between all ui elements)
- domain: NSGlobalDomain
name: AppleKeyboardUIMode
value: 3
# System Preferences > Keyboard > Keyboard > Use all F1, F2, etc. keys as standard function keys
- domain: NSGlobalDomain
name: com.apple.keyboard.fnState
value: true
# System Preferences > Keyboard > Text > Add period with double-space
- domain: NSGlobalDomain
name: NSAutomaticPeriodSubstitutionEnabled
value: false
# System Preferences > Trackpad > Look up & data detectors: Off
- domain: NSGlobalDomain
name: com.apple.trackpad.forceClick
value: false
# Disable press-and-hold for keys in favor of key repeat
- domain: NSGlobalDomain
name: ApplePressAndHoldEnabled
value: false
# Set a fast keyboard repeat rate
# NOTE: values based on my linux settings: xset r rate 400 20
# InitialKeyRepeat: 1 = 15ms
# (400/15) = 26.666666666666668 ~ 27
# KeyRepeat: 1 = 15ms
# (20/15) = 1.3333333333333333 ~ 1
- domain: NSGlobalDomain
name: KeyRepeat
value: 1
- domain: NSGlobalDomain
name: InitialKeyRepeat
value: 27
# % Screen
# Enable subpixel font rendering on non-Apple LCDs
- domain: NSGlobalDomain
name: AppleFontSmoothing
value: 1
# % Finder
# Disable desktop icons
- domain: com.apple.finder
name: CreateDesktop
value: false
resets: Finder
# Save state of last tab
- domain: com.apple.finder
name: BackupTabState
value: true
resets: Finder
# Allow custom default locations for new windows
- domain: com.apple.finder
name: NewWindowTarget
value: PfLo
resets: Finder
# New windows open in home directory
- domain: com.apple.finder
name: NewWindowTargetPath
value: file://{{ home }}
resets: Finder
# Folders are listed first in any Finder window.
- domain: com.apple.finder
name: _FXSortFoldersFirst
value: true
resets: Finder
# Finder: show all filename extensions (also in file save dialogs)
- domain: NSGlobalDomain
name: AppleShowAllExtensions
value: true
resets: Finder
# Finder: show path bar
- domain: com.apple.finder
name: ShowPathbar
value: true
resets: Finder
# Finder: allow text selection in Quick Look
- domain: com.apple.finder
name: QLEnableTextSelection
value: true
resets: Finder
# Display full POSIX path as Finder window title
- domain: com.apple.finder
name: _FXShowPosixPathInTitle
value: true
resets: Finder
# When performing a search, search the current folder by default
- domain: com.apple.finder
name: FXDefaultSearchScope
value: SCcf
resets: Finder
# Disable the warning when changing a file extension
- domain: com.apple.finder
name: FXEnableExtensionChangeWarning
value: false
resets: Finder
# Enable spring loading for directories
- domain: NSGlobalDomain
name: com.apple.springing.enabled
value: true
resets: Finder
# Remove the spring loading delay for directories
- domain: NSGlobalDomain
name: com.apple.springing.delay
value: 0
resets: Finder
# Avoid creating .DS_Store files on network volumes
- domain: com.apple.desktopservices
name: DSDontWriteNetworkStores
value: true
resets: Finder
# Avoid creating .DS_Store files on usb volumes
- domain: com.apple.desktopservices
name: DSDontWriteUSBStores
value: true
resets: Finder
# Automatically open a new Finder window when a volume is mounted
- domain: com.apple.frameworks.diskimages
name: auto-open-ro-root
value: true
resets: Finder
- domain: com.apple.frameworks.diskimages
name: auto-open-rw-root
value: true
resets: Finder
- domain: com.apple.finder
name: OpenWindowForNewRemovableDisk
value: true
resets: Finder
# Enable AirDrop over Ethernet and on unsupported Macs running Lion
- domain: com.apple.NetworkBrowser
name: BrowseAllInterfaces
value: true
resets: Finder
# Disable animation when opening the Info window in Finder (cmd⌘ + i).
- domain: com.apple.finder
name: DisableAllAnimations
value: true
resets: Finder
# Disable animations when opening a Quick Look window.
- domain: NSGlobalDomain
name: QLPanelAnimationDuration
value: 0
resets: Finder
# Hide tags
- domain: com.apple.finder
name: ShowRecentTags
value: false
resets: Finder
- domain: com.apple.finder
name: FXInfoPanesExpanded
value:
Comments: false
General: true
MetaData: false
Name: false
OpenWith: true
Preview: false
Privileges: true
resets: Finder
# % Dock
# Disable: Automatically rearrange Spaces based on most recent use
- domain: com.apple.dock
name: mru-spaces
value: false
resets: Dock
# Speed up Mission Control animations
- domain: com.apple.dock
name: expose-animation-duration
value: 0.1
resets: Dock
# Make Dock icons of hidden applications translucent
- domain: com.apple.dock
name: showhidden
value: true
resets: Dock
# Don't show recent applications in Dock
- domain: com.apple.dock
name: show-recents
value: false
resets: Dock
# Disable the Launchpad gesture (pinch with thumb and three fingers)
- domain: com.apple.dock
name: showLaunchpadGestureEnabled
value: false
resets: Dock
# Set icon size
- domain: com.apple.dock
name: tilesize
value: 10
resets: Dock
# position left
- domain: com.apple.Dock
name: orientation
value: left
resets: Dock
# lock size
- domain: com.apple.Dock
name: size-immutable
value: true
resets: Dock
# Dock: Prefer tabs when opening documents: always, fullscreen, manual
- domain: NSGlobalDomain
name: AppleWindowTabbingMode
value: always
resets: Dock
# Disable animations when you open an application from the Dock.
- domain: com.apple.dock
name: launchanim
value: false
resets: Dock
- domain: com.apple.dock
name: autohide
value: true
resets: Dock
- domain: com.apple.dock
name: autohide-delay
value: 0
resets: Dock
- domain: com.apple.dock
name: autohide-time-modifier
value: 0
resets: Dock
# % Terminal
# Preferences... > General > New tabs open with: Default Profile
- domain: com.apple.terminal
name: NewTabSettingsBehavior
value: true
# Preferences... > General > New tabs open with: Default Working Directory
- domain: com.apple.terminal
name: NewTabWorkingDirectoryBehavior
value: true
# Preferences... > General > New windows open with: Default Profile
- domain: com.apple.terminal
name: NewWindowSettingsBehavior
value: true
# Preferences... > General > New windows open with: Default Working Directory
- domain: com.apple.terminal
name: NewWindowWorkingDirectoryBehavior
value: true
# Only use UTF-8 in Terminal.app
- domain: com.apple.terminal
name: StringEncodings
value:
- 4
# Enable Secure Keyboard Entry in Terminal.app
# See: https://security.stackexchange.com/a/47786/8918
- domain: com.apple.terminal
name: SecureKeyboardEntry
# NOTE: changed to false for skhd
value: false
# Disable the annoying line marks
- domain: com.apple.Terminal
name: ShowLineMarks
value: false
# % Activity Monitor
# Show the main window when launching Activity Monitor
- domain: com.apple.ActivityMonitor
name: OpenMainWindow
value: true
resets: Activity Monitor
# Show all processes in Activity Monitor
- domain: com.apple.ActivityMonitor
name: ShowCategory
value: 100
resets: Activity Monitor
# Sort Activity Monitor results by CPU usage
- domain: com.apple.ActivityMonitor
name: SortColumn
value: CPUUsage
resets: Activity Monitor
- domain: com.apple.ActivityMonitor
name: SortDirection
value: 0
resets: Activity Monitor
# % TextEdit
# Use plain text mode for new TextEdit documents
- domain: com.apple.TextEdit
name: RichText
value: false
# Open and save files as UTF-8 in TextEdit
- domain: com.apple.TextEdit
name: PlainTextEncoding
value: 4
- domain: com.apple.TextEdit
name: PlainTextEncodingForWrite
value: 4
# % Disk Utility
# Enable the debug menu in Disk Utility
- domain: com.apple.DiskUtility
name: DUDebugMenuEnabled
value: true
- domain: com.apple.DiskUtility
name: advanced-image-options
value: true
# % Photos
# Prevent Photos from opening automatically when devices are plugged in
- domain: com.apple.ImageCapture
name: disableHotPlug
value: true
# % Google Chrome
# Disable the all too sensitive backswipe on trackpads
- domain: com.google.Chrome
name: AppleEnableSwipeNavigateWithScrolls
value: false
# % Safari
# Prevent Safari from opening 'safe' files automatically after downloading
- domain: "{{ home }}/Library/Containers/com.apple.Safari/Data/Library/Preferences/com.apple.Safari.plist"
name: AutoOpenSafeDownloads
value: false
# % Screenshots
# Save screenshots to ~/Screenshots/{hostname}
- domain: com.apple.screencapture
name: location
value: "{{ home }}/Screenshots/{{ machine }}"
resets: SystemUIServer
# Include date in screenshot filenames
- domain: com.apple.screencapture
name: include-date
value: true
resets: SystemUIServer
---
when:
- os == "macos"
- machine != "work-william"
packages:
- homebrew/cask/google-chrome
macos.defaults:
# % System updates
# Enable the automatic update check
- domain: com.apple.SoftwareUpdate
name: AutomaticCheckEnabled
value: true
# Check for software updates daily, not just once per week
- domain: com.apple.SoftwareUpdate
name: ScheduleFrequency
value: 1
# Download newly available updates in background
- domain: com.apple.SoftwareUpdate
name: AutomaticDownload
value: true
# Install System data files & security updates
- domain: com.apple.SoftwareUpdate
name: CriticalUpdateInstall
value: true
# Automatically download apps purchased on other Macs
- domain: com.apple.SoftwareUpdate
name: ConfigDataInstall
value: false
# Turn on app auto-update
- domain: com.apple.commerce
name: AutoUpdate
value: false
# Allow the App Store to reboot machine on macOS updates
- domain: com.apple.commerce
name: AutoUpdateRestartRequired
value: false