Compare commits
38 commits
zsh-antige
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
95c35cc95b | ||
|
f88ae0575d | ||
|
bdf31173a1 | ||
|
f084272c69 | ||
|
67b55410bb | ||
|
625de0504d | ||
|
c8c1f6ed1e | ||
|
b6ff2793ff | ||
|
8d58565563 | ||
|
af5b3a7565 | ||
|
5a748113b0 | ||
|
31731745e0 | ||
|
99f73fe86f | ||
|
bc3059a698 | ||
|
e876c26660 | ||
|
097404fda8 | ||
|
43841317a0 | ||
|
0894aec233 | ||
|
3dacc8dc6d | ||
|
62354f7d73 | ||
|
0e72624444 | ||
|
a5e95f2bde | ||
|
0837b98835 | ||
|
af968b318e | ||
|
8c0db346a6 | ||
|
86f04d88b9 | ||
|
3207fce252 | ||
|
709ecd6adf | ||
|
aeaab5dc1e | ||
|
e8581916d9 | ||
|
e076623617 | ||
|
4185d0e33a | ||
|
fb37bd578f | ||
|
5f52c9a8df | ||
|
1fe0d56477 | ||
|
6a9177cc3c | ||
|
79ed726826 | ||
|
68abdb8fb2 |
|
@ -1,4 +0,0 @@
|
|||
all:
|
||||
hosts:
|
||||
localhost:
|
||||
ansible_connection: local
|
16
main.yml
16
main.yml
|
@ -9,18 +9,16 @@
|
|||
- vars/misc.yml
|
||||
|
||||
tasks:
|
||||
- include: tasks/sudoers.yml
|
||||
tags: ['osx']
|
||||
- include: tasks/sublime.yml
|
||||
tags: ['sublime']
|
||||
- include: tasks/macos.yml
|
||||
tags: ['macos']
|
||||
tags: [sublime]
|
||||
|
||||
roles:
|
||||
- role: geerlingguy.dotfiles
|
||||
tags: ['dotfiles']
|
||||
- role: karlmdavis.rcm-dotfiles
|
||||
tags: [dotfiles]
|
||||
- role: geerlingguy.homebrew
|
||||
tags: ['homebrew']
|
||||
tags: [homebrew]
|
||||
- role: geerlingguy.mas
|
||||
when: mas_installed_apps
|
||||
tags: ['mas']
|
||||
tags: [macos, mas]
|
||||
- role: ./roles/macos
|
||||
tags: [macos]
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
- src: 'geerlingguy.dotfiles'
|
||||
version: '1.2.0'
|
||||
- src: 'karlmdavis.rcm-dotfiles'
|
||||
- src: 'geerlingguy.homebrew'
|
||||
version: '2.9.0'
|
||||
version: '3.1.0'
|
||||
- src: 'geerlingguy.mas'
|
||||
version: '1.2.0'
|
||||
|
|
7
roles/macos/tasks/apps/vlc.yml
Normal file
7
roles/macos/tasks/apps/vlc.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Remove VLC from the menu bar
|
||||
osx_defaults:
|
||||
domain: org.videolan.vlc
|
||||
key: 'NSStatusItem Visible statusBarItem'
|
||||
type: bool
|
||||
value: false
|
51
roles/macos/tasks/dock.yml
Normal file
51
roles/macos/tasks/dock.yml
Normal file
|
@ -0,0 +1,51 @@
|
|||
---
|
||||
- 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: 35
|
||||
notify:
|
||||
- killall Dock
|
||||
|
||||
- name: Automatically hide and show the Dock.
|
||||
osx_defaults:
|
||||
domain: com.apple.dock
|
||||
key: autohide
|
||||
type: bool
|
||||
value: true
|
||||
notify:
|
||||
- killall Dock
|
||||
|
||||
- name: Remove the autohide delay.
|
||||
osx_defaults:
|
||||
domain: com.apple.dock
|
||||
key: autohide-delay
|
||||
type: float
|
||||
value: 0
|
||||
notify:
|
||||
- killall Dock
|
|
@ -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
|
23
roles/macos/tasks/global.yml
Normal file
23
roles/macos/tasks/global.yml
Normal file
|
@ -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 }
|
|
@ -1,6 +1,11 @@
|
|||
---
|
||||
- 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
|
21
roles/macos/tasks/menu-bar.yml
Normal file
21
roles/macos/tasks/menu-bar.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
- name: Hide by default
|
||||
osx_defaults:
|
||||
domain: 'Apple Global Domain'
|
||||
key: _HIHideMenuBar
|
||||
type: bool
|
||||
value: true
|
||||
|
||||
- name: Show battery percentage
|
||||
osx_defaults:
|
||||
domain: com.apple.menuextra.battery
|
||||
key: ShowPercent
|
||||
type: string
|
||||
value: yes
|
||||
|
||||
- name: Show the current date
|
||||
osx_defaults:
|
||||
domain: com.apple.menuextra.clock
|
||||
key: DateFormat
|
||||
type: string
|
||||
value: 'EEE d MMM HH:mm'
|
|
@ -1,11 +1,4 @@
|
|||
---
|
||||
- name: Hide the menu bar by default
|
||||
osx_defaults:
|
||||
domain: 'Apple Global Domain'
|
||||
key: _HIHideMenuBar
|
||||
type: bool
|
||||
value: true
|
||||
|
||||
- name: Check for software updates daily, not just once per week
|
||||
osx_defaults:
|
||||
domain: com.apple.SoftwareUpdate
|
||||
|
@ -54,10 +47,3 @@
|
|||
key: QuitMenuItem
|
||||
type: boolean
|
||||
value: true
|
||||
|
||||
- name: Kill affected applications
|
||||
command: 'killall {{ item }}'
|
||||
with_items:
|
||||
- Dock
|
||||
- Finder
|
||||
- SystemUIServer
|
|
@ -10,5 +10,5 @@
|
|||
osx_defaults:
|
||||
domain: com.apple.screensaver
|
||||
key: askForPasswordDelay
|
||||
type: float
|
||||
type: int
|
||||
value: 0
|
7
roles/macos/tasks/trackpad.yml
Normal file
7
roles/macos/tasks/trackpad.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Enable tap on click
|
||||
osx_defaults:
|
||||
domain: com.apple.driver.AppleBluetoothMultitouch.trackpad
|
||||
key: Clicking
|
||||
type: bool
|
||||
value: true
|
14
roles/macos/tasks/universal-access.yml
Normal file
14
roles/macos/tasks/universal-access.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- 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
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
- name: Install mkdocs
|
||||
pip:
|
||||
name: mkdocs
|
||||
state: present
|
|
@ -1,27 +0,0 @@
|
|||
---
|
||||
- name: Set the icon size of Dock items.
|
||||
osx_defaults:
|
||||
domain: com.apple.dock
|
||||
key: tilesize
|
||||
type: float
|
||||
value: 20
|
||||
notify:
|
||||
- killall Dock
|
||||
|
||||
- name: Automatically hide and show the Dock.
|
||||
osx_defaults:
|
||||
domain: com.apple.dock
|
||||
key: autohide
|
||||
type: bool
|
||||
value: true
|
||||
notify:
|
||||
- killall Dock
|
||||
|
||||
- name: Remove the autohide delay.
|
||||
osx_defaults:
|
||||
domain: com.apple.dock
|
||||
key: autohide-delay
|
||||
type: float
|
||||
value: 0
|
||||
notify:
|
||||
- killall Dock
|
|
@ -1,7 +0,0 @@
|
|||
---
|
||||
- name: Require a password when exiting the screen saver.
|
||||
osx_defaults:
|
||||
domain: com.apple.universalaccess
|
||||
key: reduceTransparency
|
||||
type: bool
|
||||
value: true
|
|
@ -1,10 +0,0 @@
|
|||
---
|
||||
# Sudoers configuration (enables more convenient Vagrant usage).
|
||||
- name: Copy sudoers configuration into place.
|
||||
copy:
|
||||
src: files/etc/sudoers
|
||||
dest: /etc/sudoers
|
||||
mode: 0440
|
||||
validate: 'visudo -cf %s'
|
||||
become: yes
|
||||
when: configure_sudoers
|
|
@ -1,13 +1,5 @@
|
|||
---
|
||||
dotfiles_repo: "https://github.com/opdavies/dotfiles.git"
|
||||
dotfiles_repo_local_destination: "~/.dotfiles"
|
||||
dotfiles_files:
|
||||
- .aliases
|
||||
- .functions
|
||||
- .gitconfig
|
||||
- .gitignore-global
|
||||
- .hushlogin
|
||||
- .ideavimrc
|
||||
- .npmrc
|
||||
- .vimrc
|
||||
- .zshrc
|
||||
rcm_user: opdavies
|
||||
rcm_repos:
|
||||
- repo: 'https://github.com/opdavies/dotfiles'
|
||||
dest: '/Users/opdavies/dotfiles'
|
||||
|
|
|
@ -1,31 +1,39 @@
|
|||
---
|
||||
homebrew_taps:
|
||||
- caskroom/cask
|
||||
- caskroom/fonts
|
||||
- caskroom/versions
|
||||
- drud/ddev
|
||||
- homebrew/cask
|
||||
- homebrew/cask-fonts
|
||||
- homebrew/cask-versions
|
||||
- homebrew/services
|
||||
|
||||
homebrew_installed_packages:
|
||||
- bfg
|
||||
- cairo
|
||||
- composer
|
||||
- ddev
|
||||
- direnv
|
||||
- dnsmasq
|
||||
- dockutil
|
||||
- drupal-code-sniffer
|
||||
- fswatch
|
||||
- fzf
|
||||
- git-extras
|
||||
- git-flow
|
||||
- git-ftp
|
||||
- git-sh
|
||||
- htop
|
||||
- hub
|
||||
- jq
|
||||
- lftp
|
||||
- mas
|
||||
- molecule
|
||||
- mysql
|
||||
- npm
|
||||
- peco
|
||||
- phpmd
|
||||
- pv
|
||||
- python
|
||||
- reattach-to-user-namespace
|
||||
- ssh-copy-id
|
||||
- tig
|
||||
- tmux
|
||||
|
@ -33,39 +41,38 @@ homebrew_installed_packages:
|
|||
- unison
|
||||
- watch
|
||||
- wget
|
||||
- z
|
||||
- yarn
|
||||
- zplug
|
||||
|
||||
homebrew_cask_apps:
|
||||
- alfred
|
||||
- appcleaner
|
||||
- asciinema
|
||||
- authy
|
||||
- avast
|
||||
- avast-security
|
||||
- balenaetcher
|
||||
- bartender
|
||||
- boxer
|
||||
- caffeine
|
||||
- cyberduck
|
||||
- discord
|
||||
- docker
|
||||
- dropbox
|
||||
- filezilla
|
||||
- figma
|
||||
- firefox
|
||||
- font-fira-code
|
||||
- font-roboto-mono
|
||||
- font-source-code-pro
|
||||
- github
|
||||
- google-chrome
|
||||
- google-drive
|
||||
- gpgtools
|
||||
- iconjar
|
||||
- iterm2
|
||||
- jq
|
||||
- karabiner-elements
|
||||
- keybase
|
||||
- kitematic
|
||||
- lando
|
||||
- lastpass
|
||||
- mailplane
|
||||
- moom
|
||||
- ngrok
|
||||
- nordvpn
|
||||
- obs
|
||||
|
@ -77,11 +84,13 @@ homebrew_cask_apps:
|
|||
- qlmarkdown
|
||||
- resilio-sync
|
||||
- sequel-pro
|
||||
- sip
|
||||
- sizzy
|
||||
- skype
|
||||
- slack
|
||||
- spectacle
|
||||
- spotify
|
||||
- sublime-text
|
||||
- synergy
|
||||
- textual
|
||||
- the-unarchiver
|
||||
- tunnelblick
|
||||
|
|
43
vars/mas.yml
43
vars/mas.yml
|
@ -1,30 +1,17 @@
|
|||
mas_signin_dialog: no
|
||||
mas_installed_apps:
|
||||
- name: 'Bear'
|
||||
id: 1091189122
|
||||
- name: 'iMovie'
|
||||
id: 408981434
|
||||
- name: 'Keynote'
|
||||
id: 409183694
|
||||
- name: 'LastPass'
|
||||
id: 926036361
|
||||
- name: 'Microsoft Remote Desktop'
|
||||
id: 715768417
|
||||
- name: 'Numbers'
|
||||
id: 409203825
|
||||
- name: 'Pages'
|
||||
id: 409201541
|
||||
- name: 'Pocket'
|
||||
id: 568494494
|
||||
- name: 'Reeder'
|
||||
id: 880001334
|
||||
- name: 'Slack'
|
||||
id: 803453959
|
||||
- name: 'Todoist'
|
||||
id: 585829637
|
||||
- name: 'Tweetbot'
|
||||
id: 557168941
|
||||
- name: 'TweetDeck'
|
||||
id: 485812721
|
||||
- name: 'Xcode'
|
||||
id: 497799835
|
||||
- { name: 'Airmail 4', id: 918858936 }
|
||||
- { name: 'Bear', id: 1091189122 }
|
||||
- { name: 'Carbonize', id: 1451177988 }
|
||||
- { name: 'iA Writer', id: 775737590 }
|
||||
- { name: 'iMovie', id: 408981434 }
|
||||
- { name: 'Keynote', id: 409183694 }
|
||||
- { name: 'LastPass', id: 926036361 }
|
||||
- { name: 'Numbers', id: 409203825 }
|
||||
- { name: 'Pages', id: 409201541 }
|
||||
- { name: 'Reeder', id: 880001334 }
|
||||
- { name: 'Slack', id: 803453959 }
|
||||
- { name: 'Todoist', id: 585829637 }
|
||||
- { name: 'Tweetbot 3 for Twitter', id: 1384080005 }
|
||||
- { name: 'TweetDeck', id: 485812721 }
|
||||
- { name: 'Xcode', id: 497799835 }
|
||||
|
|
Loading…
Reference in a new issue