diff --git a/roles/macos/tasks/dock.yml b/roles/macos/tasks/dock.yml index 6c65df3..591ef10 100644 --- a/roles/macos/tasks/dock.yml +++ b/roles/macos/tasks/dock.yml @@ -1,10 +1,34 @@ --- +- name: Empty the Dock + shell: 'dockutil --remove all --no-restart' + +- name: Disable launch animation + osx_defaults: + domain: com.apple.dock + key: launchanim + type: bool + value: false + +- name: Hide open indicators + osx_defaults: + domain: com.apple.dock + key: show-process-indicators + type: bool + value: false + +- name: Hide recent apps + osx_defaults: + domain: com.apple.dock + key: show-recents + type: bool + value: false + - name: Set the icon size of Dock items. osx_defaults: domain: com.apple.dock key: tilesize type: int - value: 20 + value: 35 notify: - killall Dock diff --git a/roles/macos/tasks/finder.yml b/roles/macos/tasks/finder.yml index 356f2a2..569a874 100644 --- a/roles/macos/tasks/finder.yml +++ b/roles/macos/tasks/finder.yml @@ -21,3 +21,21 @@ value: false notify: - killall Finder + +- name: Hide the status bar + osx_defaults: + domain: com.apple.finder + key: ShowStatusBar + type: bool + value: false + notify: + - killall Finder + +- name: Hide the path bar + osx_defaults: + domain: com.apple.finder + key: ShowPathbar + type: bool + value: false + notify: + - killall Finder diff --git a/roles/macos/tasks/global.yml b/roles/macos/tasks/global.yml new file mode 100644 index 0000000..b004a07 --- /dev/null +++ b/roles/macos/tasks/global.yml @@ -0,0 +1,23 @@ +- name: Disable smart dashes + osx_defaults: + domain: NSGlobalDomain + key: NSAutomaticDashSubstitutionEnabled + type: bool + value: false + +- name: Disable press-and-hold for keys in favor of key repeat + osx_defaults: + domain: NSGlobalDomain + key: ApplePressAndHoldEnabled + type: bool + value: false + +- name: Set a blazingly fast keyboard repeat rate, and make it happen more quickly + osx_defaults: + domain: NSGlobalDomain + key: '{{ item.key }}' + type: int + value: '{{ item.value }}' + with_items: + - { key: InitialKeyRepeat, value: 20 } + - { key: KeyRepeat, value: 1 } diff --git a/roles/macos/tasks/main.yml b/roles/macos/tasks/main.yml index 40ca967..01aec13 100644 --- a/roles/macos/tasks/main.yml +++ b/roles/macos/tasks/main.yml @@ -2,8 +2,10 @@ - include: apps/vlc.yml - include: dock.yml - include: finder.yml +- include: global.yml - include: keyboard.yml - include: menu-bar.yml - include: moved-from-tasks.yml - include: screensaver.yml +- include: trackpad.yml - include: universal-access.yml diff --git a/roles/macos/tasks/menu-bar.yml b/roles/macos/tasks/menu-bar.yml index 64ff7a5..14d4df2 100644 --- a/roles/macos/tasks/menu-bar.yml +++ b/roles/macos/tasks/menu-bar.yml @@ -19,4 +19,3 @@ key: DateFormat type: string value: 'EEE d MMM HH:mm' - diff --git a/roles/macos/tasks/moved-from-tasks.yml b/roles/macos/tasks/moved-from-tasks.yml index eb49826..484dffd 100644 --- a/roles/macos/tasks/moved-from-tasks.yml +++ b/roles/macos/tasks/moved-from-tasks.yml @@ -47,4 +47,3 @@ key: QuitMenuItem type: boolean value: true - diff --git a/roles/macos/tasks/trackpad.yml b/roles/macos/tasks/trackpad.yml new file mode 100644 index 0000000..b2f6990 --- /dev/null +++ b/roles/macos/tasks/trackpad.yml @@ -0,0 +1,7 @@ +--- +- name: Enable tap on click + osx_defaults: + domain: com.apple.driver.AppleBluetoothMultitouch.trackpad + key: Clicking + type: bool + value: true diff --git a/roles/macos/tasks/universal-access.yml b/roles/macos/tasks/universal-access.yml index 009d455..1b47e4b 100644 --- a/roles/macos/tasks/universal-access.yml +++ b/roles/macos/tasks/universal-access.yml @@ -1,7 +1,14 @@ --- -- name: Require a password when exiting the screen saver. +- name: Reduce transparency osx_defaults: domain: com.apple.universalaccess key: reduceTransparency type: bool value: true + +- name: Reduce motion + osx_defaults: + domain: com.apple.universalaccess + key: reduceMotion + type: bool + value: true