I want to create a new keyboard shortcut. I want the shortcut Ctrl+Backspace to perform the same operation as if I pressed Ctrl+Home. The reason is because my new keyboard does not have a home button, and yet I find Ctrl+Home so useful. I went to Ubuntu 12.04 Keyboard pop up window, clicked on Custom Shortcuts at the bottom left. Then I pressed the plus sign to add a new rule. It asked my for a name and for a command. For the name I wrote 'my special ctrlhome'. For the command, I pressed down Ctrl+Backspace, but that didn't do anything.

How do I map Ctrl+Backspace to the same key combo as Ctrl+Home?


Try installing and running xbindkeys-config Then having it run xdotool key Ctrl+Home when that key combination is pressed.

| improve this answer | |

Install xdotool:

sudo apt-get install xdotool

This command simulates key presses.

Open Keyboard settings, and go to Shortcuts. Press the '+' button to add your Custom shortcut, and enter this as the command:

 xdotool key Ctrl+Home

This seemed to work in terminal, just it does not seem to work as a shortcut... even with bash -c "xdotool... "...

Using this worked in terminal: sleep 5; xdotool key Ctrl+Home - just select near the end of some text you have typed elsewhere, and wait for the cursor thing to move

| improve this answer | |
  • Hi wilf, even after installing xdotool and typing xdotool key Ctrl+Home in terminal, I do not get the result I'm expecting. I press Ctrl+Backspace, but still, it does not perform the same operation as Ctrl+Home – John Feb 2 '14 at 19:29
  • If you type some text in a box elsewhere, try it from terminal, but with sleep 5; ... at the beginning, that delays it for 5 seocnds before executing the command, during which time you can switch back to the box of text elsewhere, and watch the cursor thing go to the beginning. – Wilf Feb 2 '14 at 19:58
  • That's a terribly tedious workflow for something used for text editing. – Jonathan Dec 28 '14 at 1:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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