View Full Version : [ubuntu] Hotkeys? Can this be done in ubuntu?

July 13th, 2009, 05:19 PM
I want to make a hotkey so that any time I press it commonly used text is placed into whatever document or form I'm currently in. So for example, say I write out my address often so I assign it to a hotkey like Ctrl+G. Then anytime I'm writing an email or a word document or whatever I can just press Ctrl+G and the text is placed into the email/document.

Can this be done in ubuntu?

July 13th, 2009, 05:24 PM

July 14th, 2009, 01:47 AM
Thats for multimedia hotkeys on a laptop, not what I'm looking for. I'm looking to assign text to user defined hotkeys.

July 14th, 2009, 04:42 PM
not veryfied but you ca work with it:

> write a file with your address inside: /myT/text.txt

>then write a script file (= a text file):
#this is my command that paste myaddress

paste /myT/text.txt


>then save the previuos like /bin/mycommand.sh

> test in a shell:
[jonny@mypc bin]$ ./mycommand.sh

>then go to System > Preferences > Keyboard Shortcuts and associate your mycommand.sh to a shortcut

would it work?

July 14th, 2009, 11:21 PM

This sounds like what you want: http://ubuntuforums.org/showthread.php?t=1052846 .