Puppet Class: osx::dock::position

Defined in:
manifests/dock/position.pp

Overview

Public: Sets the dock position

position - ‘bottom’, ‘top’, ‘right’, ‘left’

Examples

# set the position to be on the bottom
include osx::dock::position

# ...or pick your own position!
class { 'osx::dock::position':
  position => 'left'
}

Parameters:

  • position (Any) (defaults to: 'right')


14
15
16
17
18
19
20
21
22
23
24
25
# File 'manifests/dock/position.pp', line 14

class osx::dock::position($position = 'right') {
  include osx::dock

  boxen::osx_defaults { 'position':
    domain => 'com.apple.dock',
    key    => 'orientation',
    type   => 'string',
    value  => $position,
    user   => $::boxen_user,
    notify => Exec['killall Dock'];
  }
}