Por marcos, hace 3 meses y 24 días

Enabling multimedia keys

These days I'm starting to use the awesome window manager on my archlinux laptop. Messing up with config files I found that the easiest way to set up the multimedia keys (volume up, down and mute, basically) is to use xbindkeys.

So here you have the simple setup:

$ yaourt xbindkeys

Create ~/.xbindkeysrc:

  1. # Vol down
  2. "amixer -q -c 0 sset 'Master',0 5%-"
  3. XF86AudioLowerVolume

  4. # Vol up

  5. "amixer -q -c 0 sset 'Master',0 5%+"
  6. XF86AudioRaiseVolume

  7. # Vol mute/unmute

  8. "amixer set 'Master',0 toggle"
  9. XF86AudioMute

And append to your rc.lua a call to xbindkeys:

  1. rc.lua:
  2. os.execute("xbindkeys &")

And that's all! :)

No hay comentarios

Sé el primero en escribir un comentario a esta entrada.

Escribir un comentario

Si quieres añadir tu comentario a esta entrada, simplemente rellena el siguiente formulario:





* Campos requeridos

Puedes usar estas etiquetas XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>.

No hay trackbacks

Para notificar de una mención en tu blog a esta entrada, habilita la notificación automática (Opciones > Discusión en WordPress) o especifica esta url de trackback: http://​blog.tenak.net/​go/​252/​trackback/