Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need to be able to input some text (constant) at the cursor of any window by pressing a defined shortcut (I know this is specific to a window manager, so this isn't part of the question).

I.e. I'm making a comment on a site, want to add my signature, press a shortcut and the signature is pasted at the cursor. This must not be app-specific.

Suggestions appreciated.

share|improve this question
    
This must not be app-specific -> you mean you don't want snippet tool? –  nickanor Jan 3 '13 at 11:33
    
Thanks for responding but I'm not sure what you mean by 'snippet tool'. I want this to work the same way as if typed it myself into the current window at the current position. –  Marcin Kaminski Jan 3 '13 at 12:25
    
Its a tool that lets you saved any codes, comments, signature, etc. and creates it's shortcut keyword and when you type the word and press TAB(if configured as TAB key completion or ENTER) the signature(for example) will be auto-displayed. –  nickanor Jan 3 '13 at 12:59
    
Do you have a link to it? I'd be interested in taking a look at it. –  Marcin Kaminski Jan 3 '13 at 14:36
    
my pleasure, i'll provide it as an answer. –  nickanor Jan 3 '13 at 16:12

1 Answer 1

up vote 1 down vote accepted

AutoKey from google code. You should install it from source. Please follow the below instructions after downloading and extracting the source from here. For instance you extracted to the Desktop:

cd Desktop/autokey-0.90.4/ # could be any version but we'll use this one
sudo apt-get install build-essential cdbs python-central # important
dpkg-buildpackage -us -uc # this command will create new deb files outside autokey source folder
cd ../
sudo dpkg --install autokey-gtk_0.90.4-0_all.deb autokey-common_0.90.4-0_all.deb

OR

sudo dpkg --install autokey-qt_0.90.4-0_all.deb autokey-common_0.90.4-0_all.deb

After running dpkg, there could be another dependency errors, so will have to run another command:

sudo apt-get install -f

Now your good to go. Run autokey and configure.

Sample below, you see the folder My Phrases, when you press CTRL+F7 (configured already) you will be prompted options to select like Addresses, First phrase .... It's only up to you how you configure it.

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.