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?
1 Answer
Yes, it is in fact possible, you have to create a custom keybinding for openbox. You can do what you want like so:
- Open up the file
rc.xml
located at~/.config/openbox/rc.xml
in your favorite text editor. - Scroll down to the section where it says
<keyboard>
. - In that section, create a new key-binding with the format:
<keybind key="..."> <action name="..."> <command>...</command> </action>
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"> <command>tilda</command> </action>
This will tie up tilda
with Ctrl + ` or ~ key. Allowing you to use the tilde with tilda, or just type it.
Hope this helps.
-
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.– SuchipiOct 14, 2012 at 0:26
-
Because I infrequently press the tilde key and I'm going for a quake-esque tilde-for-console setup.– SuchipiOct 14, 2012 at 0:33
-
1