dotfiles/.ansible/roles/mac_desktop/tasks/prefs.yaml

82 lines
1.7 KiB
YAML
Raw Normal View History

2017-11-23 20:27:53 +00:00
- name: 'Firefox: Set base path'
2017-11-24 18:42:08 +00:00
tags:
- config
2017-11-23 20:27:53 +00:00
set_fact:
firefox_path: '~/Library/Application Support/Firefox'
- name: 'Firefox: Find profile path'
2017-11-24 18:42:08 +00:00
tags:
- config
2017-11-23 20:27:53 +00:00
set_fact:
profile_path: "{{ lookup('ini', 'Path section=Profile0 file=' + firefox_path + '/profiles.ini') }}"
- name: 'Firefox: Add local config'
2017-11-24 18:42:08 +00:00
tags:
- config
2017-11-23 20:27:53 +00:00
copy:
content: |
user_pref("geo.enabled", false);
user_pref("privacy.window.maxInnerWidth", 1400);
user_pref("privacy.window.maxInnerHeight", 900);
dest: "{{ firefox_path }}/{{ profile_path }}/user.js"
2019-01-13 18:04:27 +00:00
mode: '0600'
2017-11-23 20:27:53 +00:00
2017-11-29 15:24:38 +00:00
- name: 'OS X: Dock orientation'
tags:
- config
osx_defaults:
domain: com.apple.dock
type: string
key: orientation
value: right
- name: 'OS X: Dock size'
tags:
- config
osx_defaults:
domain: com.apple.dock
type: float
key: tilesize
2019-01-13 18:04:27 +00:00
value: '35'
2017-11-29 15:24:38 +00:00
- name: 'OS X: Smart quotes off'
tags:
- config
osx_defaults:
domain: NSGlobalDomain
type: int
key: NSAutomaticQuoteSubstitutionEnabled
2019-01-13 18:04:27 +00:00
value: '0'
- name: 'OS X: Smart dashes off'
tags:
- config
osx_defaults:
domain: NSGlobalDomain
type: int
key: NSAutomaticDashSubstitutionEnabled
2019-01-13 18:04:27 +00:00
value: '0'
2017-11-30 20:41:26 +00:00
- name: 'OS X: Spell correction off'
tags:
- config
osx_defaults:
domain: NSGlobalDomain
type: int
key: NSAutomaticSpellingCorrectionEnabled
2019-01-13 18:04:27 +00:00
value: '0'
2017-11-30 20:41:26 +00:00
- name: 'OS X: Web spell correction off'
tags:
- config
osx_defaults:
domain: NSGlobalDomain
type: int
key: WebAutomaticSpellingCorrectionEnabled
2019-01-13 18:04:27 +00:00
value: '0'
2017-11-30 20:41:26 +00:00
2017-11-23 20:27:53 +00:00
- name: 'OS X: Clear preferences cache'
2017-11-24 18:42:08 +00:00
tags:
- config
2019-01-13 18:04:27 +00:00
command: 'pkill -u ${USER} cfprefsd'