Puppet Class: osx::global::clock_format

Defined in:
manifests/global/clock_format.pp

Overview

Set clock format for menu bar

Parameters:

  • format (Any) (defaults to: 'EEE MMM d H:mm:ss')


2
3
4
5
6
7
8
9
10
11
12
# File 'manifests/global/clock_format.pp', line 2

class osx::global::clock_format(
  $format = 'EEE MMM d  H:mm:ss'
) {
  boxen::osx_defaults { 'Configure clock format string':
    user   => $::boxen_user,
    domain => 'com.apple.menuextra.clock',
    key    => 'DateFormat',
    value  => $format,
    type   => 'string'
  }
}