Puppet Class: osx::mouse::force_touch
- Defined in:
- manifests/mouse/force_touch.pp
Overview
Public: Controls Force Touch
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'manifests/mouse/force_touch.pp', line 2
class osx::mouse::force_touch(
$enabled = true
) {
$haptic_value = $enabled ? {
false => 0,
true => 1
}
boxen::osx_defaults { 'Toggle haptic feedback for Force Touch':
user => $::boxen_user,
domain => 'com.apple.AppleMultitouchTrackpad',
key => 'ActuateDetents',
value => $haptic_value,
type => 'integer'
}
$force_value = $enabled ? {
false => 1,
true => 0
}
boxen::osx_defaults { 'Toggle force supression for Force Touch':
user => $::boxen_user,
domain => 'com.apple.AppleMultitouchTrackpad',
key => 'ForceSuppressed',
value => $force_value,
type => 'integer'
}
}
|