applemediakeyd

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2015 License: MIT Imports: 7 Imported by: 0

README

applemediakeyd

applemediakeyd is a daemon for linux, which listens for media key events and does the right thing.

Backlight brightness

applemediakeyd reads and writes to the backlight brightness file in the sysfs.

Keyboard backlight

applemediakeyd reads and writes to the keyboard backlight brightness file in the sysfs.

Volume

applemediakeyd uses the OSS API to maintain volume.

The OSS API is actually an emulation layer which maps to ALSA driver commands. But it allows us to use native Go code with syscalls for ioctl, instead of requiring cgo and alsa-lib.

TODO

  • extract brightness into package
  • connect previous, play/pause, next buttons to MPRIS
  • adjust based on ambient sensor.

License

sgheme is Copyright (c) 2015 Bernerd Schaefer. It is free software, and may be redistributed under the terms specified in the [LICENSE] file.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package devinput provides APIs for working with /dev/input/ event devices.
Package devinput provides APIs for working with /dev/input/ event devices.
Package oss provides access to the Open Sound System API.
Package oss provides access to the Open Sound System API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL