From 2ed84db09ad17ad64f914efa767a3f90e32c7b87 Mon Sep 17 00:00:00 2001 From: Ariejan de Vroom Date: Mon, 10 Jun 2024 12:51:45 +0200 Subject: [PATCH] Finale macos tweaks --- roles/macos_03_tweaks/tasks/main.yml | 102 ++++++++++++++++++++++++++- 1 file changed, 101 insertions(+), 1 deletion(-) diff --git a/roles/macos_03_tweaks/tasks/main.yml b/roles/macos_03_tweaks/tasks/main.yml index 4c649f3..9f1dfc2 100644 --- a/roles/macos_03_tweaks/tasks/main.yml +++ b/roles/macos_03_tweaks/tasks/main.yml @@ -31,4 +31,104 @@ value: [] state: present - \ No newline at end of file +- name: Show all Extensions + community.general.osx_defaults: + domain: NSGlobalDomain + key: AppleShowAllExtensions + type: bool + value: true + state: present + +- name: Show all files + community.general.osx_defaults: + domain: com.apple.finder + key: AppleShowAllFiles + type: bool + value: true + state: present + +- name: Show path in finder bar + community.general.osx_defaults: + domain: com.apple.finder + key: ShowPathbar + type: bool + value: true + state: present + +- name: Set preferred view style to "Nlsv" + community.general.osx_defaults: + domain: com.apple.finder + key: FXPreferredViewStyle + type: string + value: Nlsv + state: present + +- name: Sort folders first + community.general.osx_defaults: + domain: com.apple.finder + key: _FXSortFoldersFirst + type: bool + value: true + state: present + +- name: Disable extension change warning + community.general.osx_defaults: + domain: com.apple.finder + key: FXEnableExtensionChangeWarning + type: bool + value: false + state: present + +- name: Set default Finder location to home folder + community.general.osx_defaults: + domain: com.apple.finder + key: NewWindowTarget + type: string + value: PfHm + state: present + +- name: Flash date separators + community.general.osx_defaults: + domain: com.apple.menuextra.clock + key: FlashDateSeparators + type: bool + value: true + state: present + +- name: Set clock to 24-hour format + community.general.osx_defaults: + domain: com.apple.menuextra.clock + key: DateFormat + type: string + value: H:mm + state: present + +- name: Map caps lock to control + community.general.osx_defaults: + domain: -g + key: com.apple.keyboard.modifiermapping.1452-591-0 + type: array + value: 'HIDKeyboardModifierMappingDst30064771113HIDKeyboardModifierMappingSrc30064771129' + state: present + +- name: Restart Dock + community.general.shell: + cmd: killall Dock + executable: /bin/zsh + args: + chdir: "{{ ansible_env.HOME }}" + async: 1 + poll: 0 + ignore_errors: true + changed_when: false + +- name: Restart SystemUIServer + community.general.shell: + cmd: killall SystemUIServer + executable: /bin/zsh + args: + chdir: "{{ ansible_env.HOME }}" + async: 1 + poll: 0 + ignore_errors: true + changed_when: false \ No newline at end of file