PDA

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



ltwinner
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?

DaGrimReefah
July 13th, 2009, 05:24 PM
https://wiki.ubuntu.com/Hotkeys

ltwinner
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.

marcopalla
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):
#!/bin/bash
#this is my command that paste myaddress

paste /myT/text.txt

#end

>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?
m.

jmszr
July 14th, 2009, 11:21 PM
Itwinner,

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