Avoid Typing with Autokey
Productivity Sauce
Imagine how much time you could save if you had a tool that could help you to avoid typing static text like "Kind regards" or your address. Like the idea? Then you'll most certainly appreciate the Autokey text expanding utility. The current version of Autokey is distributed as a tarball archive, and it requires a few additional Python packages: python-gamin, python-xlib, and python-configobj. On Ubuntu-based distros, you can install them using the following apt-get install command:
sudo apt-get install python-gamin python-xlib python-configobj
Download and unpack then the Autokey archive, move the resulting directory into your home folder, and use the autohot.sh script to launch the application:
sh ./autokey.sh
Autokey sports a rather simple two-pane interface. The Folders and Phrases pane allows you to group text snippets, or phrases, into folders. By default, Autokey contains two folders: My Phrases (with the Addresses subfolder) and Tray Phrases. You can, of course, add your own folders and subfolders using the File -> New Top-Level Folder and File -> New Folder commands.
To create a new phrase, select the folder you want and choose File -> New Phrase. In the right pane, give the phrase a descriptive name in the Phrase Description field and enter the desired text in the Phrase Contents field. Next you have to specify a trigger which inserts the given phrase. If you tick the Show in tray menu check box, the phrase becomes accessible via Autokey's tray menu. Another option is to specify an abbreviation for the specific phrase, so when you type, for example, "addr", Autokey replaces it with the related phrase. To do this, tick the Use an abbreviation check box and enter the desired abbreviation in the Abbreviation field. Alternatively, you can specify a keyboard shortcut that triggers the phrase. Switch to the Hotkeys section, tick the Use a hotkey check box, and define the desired hotkey. In addition to that, you can set up a window filter to trigger the phrase only in a specific application. For example, if you want to use the phrase only when you work in OpenOffice.org Writer, you can specify the .* - OpenOffice.org Writer filter in the Window Filter section. Besides conventional text snippets, Autokey allows you to specify so-called macros which can insert the current date and time or execute a shell command.
The Folders and Phrases pane also contains the default Tray Phrases folder. As the name suggests, all phrases in this folder appear in the Tray Phrases menu in the tray icon. Finally, to make it easier to quickly find the phrase you want in the Folder and Phrases pane, there is also the Search field. Using it, you can find the phrase by its title and description, or by its abbreviation.
Comments
comments powered by DisqusSubscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
System76 Refreshes Meerkat Mini PC
If you're looking for a small form factor PC powered by Linux, System76 has exactly what you need in the Meerkat mini PC.
-
Gnome 48 Alpha Ready for Testing
The latest Gnome desktop alpha is now available with plenty of new features and improvements.
-
Wine 10 Includes Plenty to Excite Users
With its latest release, Wine has the usual crop of bug fixes and improvements, along with some exciting new features.
-
Linux Kernel 6.13 Offers Improvements for AMD/Apple Users
The latest Linux kernel is now available, and it includes plenty of improvements, especially for those who use AMD or Apple-based systems.
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.
-
HashiCorp Cofounder Unveils Ghostty, a Linux Terminal App
Ghostty is a new Linux terminal app that's fast, feature-rich, and offers a platform-native GUI while remaining cross-platform.
Alternatives
xautomation-1.01
and
xnee-2.05
Xnee, while not finished, has VERY big potential (and GUI ;P), and for basic tasks is great (it's recording time of events even!), I'm using it now.
I've added the replay of recorded actions to the standard Gnome command_action_1 (or whatever is called)
And works nice.
xautomation is more limited (or I am :P)
Thanks
I've been looking to such a program for a long time, thanks for the hint...
Under Windows I use Autohotkey, but until now I haven't found a nice alternative under Linux...
why not keep it simple?
In my day job where WinXP is unavoidable, i became used to text replacement applications like Shortkeys and the even better Texter, and i am quite happy with especially the last mentioned. Texter is very straightforward, you enter the strings and the text used to replace them after triggering them, and that's it. I haven't found anything as simple and useful under Linux yet.
Autokey doesn't even come close, unfortunately. I never managed to get it to run under WindowMaker, and i really don't want to switch to Gnome. Furthermore, the overly complex configuration interface is not at all userfriendly. I'd rather prefer something as straightforward and maybe even simpler to configure as Texter.