Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

Does someone know if it is possible to bind a command to a button which will reveal the onscreen keyboard? (Note: The onscreen keyboard has already be started.)

Currently when I want to reveal the onscreen keyboard, I have to click the keyboard icon in the tray bar. This is not very convenient mainly because the onscreen keyboard does not reveal itself when you are yet still focused on a text field. Hence I want to bind it to a button.

share|improve this question
up vote 4 down vote accepted

We can do that by creating a custom keyboard shortcut to the onscreen keyboard. The onscreen keyboard used in Ubuntu is Onboard.

Search for Keyboard and move to Shortcuts tab. Go to Custom Shortcuts and click the + button. After that a small dialog box will appear. Give an appropriate name to the shortcut and enter onboard in the command box. Then, press Apply button.

enter image description here

After saving it, click on Disabled and hold down the new shortcut key that you want to assign to the command.

enter image description here

After that, pressing the keyboard combination will pop up the onscreen keyboard.

share|improve this answer
Thank you @jokerdino. I ended up using another program, xbindkeys, to bind a shortcut. Because I wanted it to bind to a special key (hardware key), on my laptop. – WG- Sep 3 '12 at 12:54
Thanks for the accept. It looks like my answer is not the one you found useful. May I suggest you add your own solution and accept that instead? It would be really useful to those who would want to do it that way in the future. Thanks. – jokerdino Sep 3 '12 at 13:00
As said, I ended up using xbindkeys, you can then press a random key (also hardware ones) and it finds the correct "command" to activate that key. You can then bind a command to it. However it does not work anymore, at least for me, in Ubuntu 12.04, because it can't detect the hardware key anymore :( – WG- Sep 3 '12 at 13:04
Oh yes. You did. Nothing much to do otherwise then? – jokerdino Sep 3 '12 at 13:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.