Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using Linux Mint, I set a hot key that ` will open a new terminal window. But now I found that when writing markdown, I need this key. How could I map ~ to `?

share|improve this question
2  
~ is your home directory, I'm not sure you'd want to remove this particular key. Use modifiers for that, for instance I use ctrl-alt-t to open a new terminal window. That's the very purpose of modifiers. –  Ravachol Dec 13 '11 at 15:50

2 Answers 2

up vote 2 down vote accepted

You can map keys using xbindkeys :

sudo apt-get install xbindkeys
# write default configuration
xbindkeys --defaults > /home/jylam/.xbindkeysrc

You can then edit ~/.xbindkeysrc to add you own bindings, or install xbindkeys-config as well to use the graphical editor.

I strongly suggest NOT to use ~ as a shortcut, as it represents your home directory (~/). Use modifiers, like ctrl or alt.

share|improve this answer
    
I try to use xbindkeys-config to do the config, but I don't know how to write the action "enter ` for me"? –  wong2 Dec 14 '11 at 7:16
1  
You can know the name of a key using 'xbindkeys -k' ; "enter" is Mod2 + Return here, for instance. –  Ravachol Dec 14 '11 at 9:35
    
I want to bind ctrl + grave key to enter the grave key, how to write the .xbindkeysrc? –  wong2 Dec 14 '11 at 11:54

I use an application called Guake for this. Instead of opening up a terminal window, it has a persistent drop-down terminal that appears when you press the hotkey. By default it is set to F12, but it can be changed to other keys. When I first started using it, I set it to `, but found that didn't work very well, because, as Ravachol said, you use that key for other things.

share|improve this answer

Your Answer

 
discard

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.