Puppet Class: archlinux_macbookretina::mac_keyboard

Defined in:
manifests/mac_keyboard.pp

Overview

Sets up macbook-specific keyboard stuff

  • set modprobe.d/apple.conf with “options hid_apple fnmode=2”

  • set /etc/systemd/system/kdm.service.d/kbd_backlight.conf to start upower before SDDM



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'manifests/mac_keyboard.pp', line 8

class archlinux_macbookretina::mac_keyboard {

  file { '/etc/modprobe.d/apple.conf':
    ensure => present,
    owner  => 'root',
    group  => 'root',
    mode   => '0644',
    source => 'puppet:///modules/archlinux_macbookretina/apple.conf',
  }

  file { '/etc/systemd/system/kdm.service.d':
    ensure => directory,
    owner  => 'root',
    group  => 'root',
    mode   => '0755',
  }
  -> file { '/etc/systemd/system/kdm.service.d/kbd_backlight.conf':
    ensure => present,
    owner  => 'root',
    group  => 'root',
    mode   => '0644',
    source => 'puppet:///modules/archlinux_macbookretina/kbd_backlight.conf',
  }

}