Friday, October 05, 2007

Gnome Tip: Changing shortcuts in gnome-terminal

Quick Tip for anyone using gnome-terminal:
I really like using gnome-terminal, however when I went to use the ordinary copy or paste shortcuts I quickly found that the shortcuts differ from the normal old: <Ctrl>+C and <Ctrl>+P. I find this particularly annoying, but they can easily be changed.

Open the gnome-terminal and run the following two commands:
# gconftool-2 -t str -s /apps/gnome-terminal/keybindings/copy "<Control>c"
# gconftool-2 -t str -s /apps/gnome-terminal/keybindings/paste "<Control>v">

Problem solved, now you can use the normal <Ctrl>+C and <Ctrl>+P to copy and paste.

11 comments:

Anonymous said...

What about the original functionality of ctrl-c?

Sachin said...

How do you select without using mouse?

karatedog said...

I love correcting typos, even 3 years old ones :-)
So it is surely not "+P"...

Anonymous said...

Nice tip, but as someone mentioned, what should be the shortcut to the original ctrl-c?

nbv4 said...

How are you supposed to kill processes from the terminal if ctrl+c is now copy?

Anonymous said...

With a similar setup I found that ctrl+shift+c seems to work well for killing processes.

Nomad said...

That is completely ridiculous. You still have to highlight it, so why wouldn't you just use your mouse to right click and copy? With this solution you lose functionality of Ctrl-C.

smokealotapotamus said...

You left a > at the end of the paste command, rendering it not working

Anonymous said...

Unless anyone is like me and didn't think about the implications of doing this before they did it, it's easy to undo with

gconftool-2 -u /apps/gnome-terminal/keybindings/copy

Anonymous said...

This post is only for laughs :-).

Anonymous said...

Thanks to Anonymous in explaining how to undo this. I did it with recalling that Ctrl+c is already bound to another command.

gconftool-2 -u /apps/gnome-terminal/keybindings/copy
gconftool-2 -u /apps/gnome-terminal/keybindings/paste