2 # PowerPC Apple specific devd events
7 match "subsystem" "Button";
8 action "shutdown -p now";
12 # PowerBook and iBook lid close.
15 match "subsystem" "lid";
17 action "shutdown -p now";
21 # The next blocks enable brightness hotkeys that can be found on Apple laptops
24 match "subsystem" "keys";
25 match "type" "brightness";
26 match "notify" "down";
27 action "sysctl dev.backlight.0.level=\
28 $(expr `sysctl -n dev.backlight.0.level` - 10)";
33 match "subsystem" "keys";
34 match "type" "brightness";
36 action "sysctl dev.backlight.0.level=\
37 $(expr `sysctl -n dev.backlight.0.level` + 10)";
41 # The next blocks enable volume hotkeys that can be found on Apple laptops
44 match "subsystem" "keys";
46 action "mixer vol.mute=^";
51 match "subsystem" "keys";
52 match "type" "volume";
53 match "notify" "down";
54 action "mixer vol.volume=-10%";
59 match "subsystem" "keys";
60 match "type" "volume";
62 action "mixer vol.volume=+10%";
68 match "subsystem" "keys";
70 action "camcontrol eject cd0";
73 # Equivalent to the ACPI/ACAD notify
76 match "subsystem" "POWER";
77 match "type" "ACLINE";
78 action "service power_profile $notify";