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 on Debian Squeeze using tilda and openbox, and as the source-engine-user I am, I mapped tilda to ~. However, this creates problems when trying to press tilde normally, eg. for use in scripting. Is it possible to make ~ still open console, but make the system type a tilde character and NOT open the console when Ctrl+~ is pressed?

share|improve this question
Have you tried to replace ` with grave in the keybind definition, i.e., write <keybind key="C-grave"> (...) </keybind> ? – user172870 Nov 12 '12 at 10:27

Yes, it is in fact possible, you have to create a custom keybinding for openbox. You can do what you want like so:

  1. Open up the file rc.xml located at ~/.config/openbox/rc.xml in your favorite text editor.
  2. Scroll down to the section where it says <keyboard>.
  3. In that section, create a new key-binding with the format:
<keybind key="...">
 <action name="...">

So you need to set the keys for the binding, the action name and command. Here is an example of what you could use:

<keybind key="C-`">
 <action name="Execute">

This will tie up tilda with Ctrl + ` or ~ key. Allowing you to use the tilde with tilda, or just type it.

Hope this helps.

share|improve this answer
This is the reverse of what I want to do; I want to simulate the press of the tilde key when Ctrl+Tilde is pressed, but have tilda toggled by Tilde alone. – Suchipi Oct 14 '12 at 0:26
Because I infrequently press the tilde key and I'm going for a quake-esque tilde-for-console setup. – Suchipi Oct 14 '12 at 0:33
Then I have no idea, sorry. – Link Oct 14 '12 at 2:03
Thanks for your attempt, at least – Suchipi Oct 15 '12 at 17:01

You must log in to answer this question.

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