gnome-terminal Keyboard Shortcuts in OS X
After installing the Darwin ports gnome-terminal app, I noticed none of my favorite keyboard shortcuts were not configured. The Edit > Keyboard Shortcuts tool was not working for me, so I was stuck without my favorite shortcuts such as "New Tab". After remapping a few shortcuts on a Solaris box, I figured out the correct config to hack up. To setup some simple keyboard mappings such as new tab, new window, paste, etc, do the following:
Note:
With a little luck, your remaps will take affect.
- Create a directory for the keybindings
mkdir -p ~/.gconf/apps/gnome-terminal/keybindings
- Edit a [new] %gconf file
vi ~/.gconf/apps/gnome-terminal/keybindings/%gconf.xml
- Paste in some mappings. Below are a few standard defaults
<?xml version="1.0"?>
<gconf>
<entry name="new_window" mtime="1148771763" type="string">
<stringvalue><Shift><Control>n</stringvalue>
</entry>
<entry name="new_tab" mtime="1148771848" type="string">
<stringvalue><Shift><Control>t</stringvalue>
</entry>
<entry name="copy" mtime="1148771848" type="string">
<stringvalue><Shift><Control>c</stringvalue>
</entry>
<entry name="paste" mtime="1148771848" type="string">
<stringvalue><Shift><Control>v</stringvalue>
</entry>
<entry name="switch_to_tab_1" mtime="1148771848" type="string">
<stringvalue><Alt>1</stringvalue>
</entry>
<entry name="switch_to_tab_2" mtime="1148771848" type="string">
<stringvalue><Alt>2</stringvalue>
</entry>
<entry name="switch_to_tab_3" mtime="1148771848" type="string">
<stringvalue><Alt>3</stringvalue>
</entry>
<entry name="switch_to_tab_4" mtime="1148771848" type="string">
<stringvalue><Alt>4</stringvalue>
</entry>
</gconf>
Note:
- After adding the mappings, restart X
- I cannot get "copy" to work, but paste seems to work??
- If you are looking for other remaps, you can always update a keybinding on a Solaris or Linux box and inspect "~/.gconf/apps/gnome-terminal/keybindings/%gconf.xml" for the correct config value
With a little luck, your remaps will take affect.

0 Comments:
Post a Comment
<< Home