diff options
Diffstat (limited to 'etc/devd')
-rw-r--r-- | etc/devd/apple.conf | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/etc/devd/apple.conf b/etc/devd/apple.conf index a84822f..8518890 100644 --- a/etc/devd/apple.conf +++ b/etc/devd/apple.conf @@ -19,6 +19,26 @@ notify 0 { }; +# The next blocks enable brightness hotkeys that can be found on Apple laptops +notify 0 { + match "system" "PMU"; + match "subsystem" "keys"; + match "type" "brightness"; + match "notify" "down"; + action "sysctl dev.backlight.0.level=\ + $(expr `sysctl -n dev.backlight.0.level` - 10)"; +}; + +notify 0 { + match "system" "PMU"; + match "subsystem" "keys"; + match "type" "brightness"; + match "notify" "up"; + action "sysctl dev.backlight.0.level=\ + $(expr `sysctl -n dev.backlight.0.level` + 10)"; +}; + + # The next blocks enable volume hotkeys that can be found on Apple laptops notify 0 { match "system" "PMU"; |