From 2b1835160e45d0222df6a0e50d9408e409319203 Mon Sep 17 00:00:00 2001 From: Ariejan de Vroom Date: Mon, 10 Jun 2024 12:37:20 +0200 Subject: [PATCH] Update package handling for macos --- group_vars/all.yml | 37 ++++++++++++++++++++++++---- roles/macos_03_tweaks/tasks/main.yml | 34 +++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 5 deletions(-) create mode 100644 roles/macos_03_tweaks/tasks/main.yml diff --git a/group_vars/all.yml b/group_vars/all.yml index 892f930..eccea13 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -101,6 +101,18 @@ gnome_extensions: macos: hostname: "maximum" + dock_items: + - /System/Applications/Calendar.app + - /Applications/Todoist.app + - /Applications/Obsidian.app + - /Applications/Thunderbird.app + - /Applications/Firefox.app + - /Applications/Google Chrome.app + - /Applications/iTerm.app + - /Applications/Slack.app + - /Applications/Signal.app + - /Applications/WhatsApp.app + - /Applications/Spotify.app homebrew_packages: - mas - tree @@ -122,9 +134,24 @@ macos: - slack - whatsapp - rectangle + - zsh + - stow + - the_silver_searcher + - jq + - vim + - wget + - direnv + - antidote + - gnupg + - sqlite mas_remove: - - iMovie - - GarageBand - - Pages - - Keynote - - Numbers \ No newline at end of file + # GarageBand + - 682658836 + # iMovie + - 408981434 + # Pages + - 409201541 + # Keynote + - 409183694 + # Numbers + - 409203825 \ No newline at end of file diff --git a/roles/macos_03_tweaks/tasks/main.yml b/roles/macos_03_tweaks/tasks/main.yml new file mode 100644 index 0000000..4c649f3 --- /dev/null +++ b/roles/macos_03_tweaks/tasks/main.yml @@ -0,0 +1,34 @@ +--- +- name: Set dock tilesize + community.general.osx_defaults: + domain: com.apple.dock + key: tilesize + type: int + value: 36 + state: present + +- name: Set dock orientation + community.general.osx_defaults: + domain: com.apple.dock + key: orientation + type: string + value: left + state: present + +- name: Disable recents in dock + community.general.osx_defaults: + domain: com.apple.dock + key: show-recents + type: bool + value: false + state: present + +- name: Remove all apps from dock + community.general.osx_defaults: + domain: com.apple.dock + key: persistent-apps + type: array + value: [] + state: present + + \ No newline at end of file