Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using a Logitech R400 2.4 GHz Wireless Presenter, seen by the OS as a standard USB keyboard that has 4 buttons (page up, page down, f5, and 'v') and I need to remap specific keys to certain functions, like quitting the program.

I'm creating an exhibit for a museum in which I need to launch a PowerPoint presentation in OpenOffice from the app and control the presentation with a presenter remote.

I need to be able to exit OpenOffice from the remote. Does anyone know how I could do this?

I'm using Ubuntu Linux and can run any window manager I need to (currently Awesome WM).

The operator should be able to cycle back and forth through the presentation and be able to exit any time with one of the buttons.

share|improve this question

migrated from Jan 4 '13 at 5:20

This question came from our site for professional and enthusiast programmers.

Can you make a button called quit out of your favorite rectangle? – Mikhail Jan 3 '13 at 23:18
You mean the buttons on the remote? No, the remote appears as a standard USB keyboard to the OS. – stephelton Jan 3 '13 at 23:26
I mean make a button in powerpoint – Mikhail Jan 3 '13 at 23:27
There's no pointer / mouse device, and the operator should be able to exit at any time. – stephelton Jan 3 '13 at 23:32

I have found a solution for you: you can use AutoHotKey to remap the device button, here is a post of someone who did it and explains how to do it.
Yet I found another solution that might help you as well and presents remapping keys from ubuntu and logitech R400.

Good Luck

share|improve this answer
Thanks, but AutoHotKey appears to be a Windows only app. I'm running Ubuntu Linux. – stephelton Jan 7 '13 at 21:48
up vote 0 down vote accepted

I've found a solution that uses an approach outlined here.

The only thing I really modified in his script was the xkb_symbols table. Mine reads:

xkb_symbols "remote" {
    key <FK05>   { [ Escape         ] };

which remaps the f5 key to escape. During an OpenOffice slide show, the escape key exits the show.

To run OpenOffice such that it immediately begins the slideshow, I invoke it as such:

soffice --invisible --norestore -show <slideshow file>

I invoke it this way from my native C++ app with the system() function. Once it is up and running, pressing the remapped button on the remote exits the presentation and returns focus to my app.

share|improve this answer

Read this article on how to rebind keys in Ubuntu:

share|improve this answer
At least, I am assuming that this functionality is included in the Linux releases of OpenOffice, and not just the Windows version. If not you might try LibreOffice, which is basically the same product but with different licensing (IIRC). – Llamanerds Jan 8 '13 at 19:31
Sorry, I should have included that in my question. That doesn't work inside presentation mode, unfortunately. – stephelton Jan 8 '13 at 19:48
In that case, you might look at this post: The second answer to the question looks like it addresses your problem. – Llamanerds Jan 8 '13 at 20:56
Thanks. I think xmodmap would have worked as well, and might actually be simpler. So I'll give you my bounty points :) – stephelton Jan 8 '13 at 22:00
I edited the answer to reflect the actual useful information. – Llamanerds Jan 11 '13 at 0:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .