Puppet Class: osx::mouse::smart_zoom

Defined in:
manifests/mouse/smart_zoom.pp

Overview

Public: Enable/disable smart zoom for multitouch mice (default = disabled). Requires re-login.

Parameters:

  • enabled (Any) (defaults to: false)


3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'manifests/mouse/smart_zoom.pp', line 3

class osx::mouse::smart_zoom($enabled = false) {
  $value = $enabled ? {
    false => 0,
    true  => 1
  }

  boxen::osx_defaults { 'Enable smart zoom for multitouch mice':
    user   => $::boxen_user,
    domain => 'com.apple.driver.AppleBluetoothMultitouch.mouse',
    key    => 'MouseOneFingerDoubleTapGesture',
    value  => $value,
    type   => 'integer'
  }
}