Mostrando entradas con la etiqueta linux. Mostrar todas las entradas
Mostrando entradas con la etiqueta linux. Mostrar todas las entradas

jueves, 19 de abril de 2012

Workaround for multimedia keys not working with Banshee on Xubuntu

Why am I writing in English? Well, because I think most of the people googling this would at least understand it, and I haven't seen this information posted anywhere, so writing in English will make it reach a wider audience.

Anyway, I've recently installed Xubuntu 12.04 Beta 2 and the media keys of my keyboard were not working with Banshee. As far as I can tell, this is not a bug on Xubuntu (the keys do work with Parole and other programs) but with Banshee, probably with the Banshee Media Keys plugin.

After suffering for something like 3 hours and not being able to find a solution, I thought of this pretty and easy workaround. The fist important thing is that Banshee allows us to control it with the terminal, you'll be able to see how with  the command:

banshee --help-playback


This gives back all available commands to control Banshee from the terminal, and an explanation of what each of them do.

My keyboard only has four multimedia keys (I reckon most of them do), and they are Play/Pause, Stop, Previous and Next, so I'm interested in only these commands:

--next
--restart-or-previous
--toggle-playing
--stop


 Now that we know this, we can actually set any shortcut to them. Of course I chose my shortcuts to be my multimedia keys, but you can set them to anything you want.


 To do this, we just go to Xubuntu's keyboard configuration and to the "Shortcuts" tab and you need to manually set every shortcut as you want. Look at my shortcut configuration screen (the highlighted ones are Banshee's)





Note that I've added some shortcuts to add ratings to my songs as well (I'm a rating freak, I have 4.000+ songs and everyone is rated), but that is completely optional and up to you! Of course you can create shortcuts for some other things as well, just remember to check out Banshee's help (the first command I wrote here)

Hope it was useful!

lunes, 13 de diciembre de 2010

5 (nuevas y sinceras) razones para usar Linux


  1. Nada mejor que el sentirte más inteligente por usar un sistema operativo más "difícil". Ignorar convenientemente el hecho de que usas Ubuntu. Cambiar el discurso a "Linux es más fácil" si te lo pregunta alguien de más de 35 años.

  2. Ser libre es importante. Usa Linux para decirles a todos lo mucho que te importa la igualdad y la libertad usando un sistema operativo libre. Ignorar convenientemente el hecho de que tenés Flash, codecs MP3, drivers gráficos.

  3. ¡Los monopolios apestan! Microsoft es una empresa malvada dirigida por el neo-diablo Ballmer, la nueva versión de Bill Gates. ¡Yo no ayudo a monopolios! Ignorar convenientemente cualquier programa Mono que tengas y el hecho de que te conectas mediante Pidgin a la red MSN. Y por supuesto, nunca reconocer que tenés una partición para tu Windows.

  4. Linux es mucho más rápido. Ignorar convenientemente rendimiento 3D y los problemas de velocidad con Flash y Firefox.

  5. La piratería es mala. Y yo, por supuesto, respeto el trabajo de los demás. Ignorar convenientemente los gigas bajados de música, series y películas. Negar de nuevo tener un sistema Windows pirateado en otra partición.


Lista inspirada en usa series de twitts mios (@Pk_JoA). La quinta razón fue twitteada por @PutoNerd. Todos los créditos a él por esa.