Ivor O’Connor

October 18, 2013

XFCE Mapping of Corsair K95 Multimedia Keys to VLC

Filed under: Uncategorized — ioconnor @ 6:51 am

This took me a long time to do tonight. Finally found the solution at CrunchBang.org and then modified it slightly to my liking. The first part on changing the interface was not very clear but the site referenced n0tablog.wordpress.com which had a picture in step 3 that made it clear. The Official XFCE docs also helped me figure out how to do keyboard shortcuts. Along the way I may have mapped key symbols to their key codes as described here.

Anyways the main problem is that VLC keys only work when the VLC application is in the foreground. To get around this VLC needs to be configured to listen to a local port. Then commands can be sent to the port via bash scripts. Keyboard shortcuts are bound to the bash scripts. So now my multimedia keys control VLC as I expect them to.

The bash scripts look like this file called vlcStop.bsh:
#!/bin/bash
echo “pause” | nc -U /tmp/vlc.sock

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: