Make ALT+D act like ALT+TAB - HUD

I am using the Alt key very often and I do like the HUD and want to keep both.

This is my problem: I always use Alt+D in Chrome to access the URL bar and I'm doing this very fast, but then HUD annoyingly pops up.

When pressing ALT + Tab very fast the HUD won't pop up, but if pressing ALT + D just as fast the HUD will pop up.

Is there a way to make it work like when pressing Alt+Tab, but with Alt+D? or edit the timer for how long I have to press until it won't pop up?


Solution 1:

There are several ways to go about this. Here are three options I can suggest you to try. It really depends on how you prefer to go about it for your system.

System Settings - Option 1

Change what key calls your HUD or completely disable it like so:

System settings… 

 1. -> Keyboard 
 2. -> Shortcuts tab 
 3. -> Launchers

Assign a new key to “Key to show the HUD" or Disable

enter image description here

There are alternate solutions for editing your system settings in this Q&A How do I modify or disable the HUD's use of the Alt key? .

Program Driven - Option 2

Maybe try editing your global hotkeys with a program.

xbindkeys | With this option you'll have to know how to call capabilities though shell commands.

(Other suggestions? Leave a comment and I'll add it.)

Programming Driven - Option 3

Here is a answer on SO that you may find useful regardless of what you do. This is a good answer to review especially if you choose to do this on your own programmatically along with this: Q&A How can I programatically show/hide my app window with global shortcut key?.

Solution 2:

There is no difference between alt-tab and alt-d behaviour.

I tested this numerous times on 14.04. The only tricky part is that you have to make sure to press and hold the alt first. So don't press d first. You can see that every time you open the HUD, you have typed a d somewhere.

alt - tab works in the exact same way...