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
-
Fedora Asahi Remix 41 Available for Apple Silicon
If you have an Apple Silicon Mac and you're hoping to install Fedora, you're in luck because the latest release supports the M1 and M2 chips.
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.
-
AlmaLinux 10.0 Beta Released
The AlmaLinux OS Foundation has announced the availability of AlmaLinux 10.0 Beta ("Purple Lion") for all supported devices with significant changes.
-
Gnome 47.2 Now Available
Gnome 47.2 is now available for general use but don't expect much in the way of newness, as this is all about improvements and bug fixes.
-
Latest Cinnamon Desktop Releases with a Bold New Look
Just in time for the holidays, the developer of the Cinnamon desktop has shipped a new release to help spice up your eggnog with new features and a new look.
-
Armbian 24.11 Released with Expanded Hardware Support
If you've been waiting for Armbian to support OrangePi 5 Max and Radxa ROCK 5B+, the wait is over.
-
SUSE Renames Several Products for Better Name Recognition
SUSE has been a very powerful player in the European market, but it knows it must branch out to gain serious traction. Will a name change do the trick?
-
ESET Discovers New Linux Malware
WolfsBane is an all-in-one malware that has hit the Linux operating system and includes a dropper, a launcher, and a backdoor.
-
New Linux Kernel Patch Allows Forcing a CPU Mitigation
Even when CPU mitigations can consume precious CPU cycles, it might not be a bad idea to allow users to enable them, even if your machine isn't vulnerable.
-
Red Hat Enterprise Linux 9.5 Released
Notify your friends, loved ones, and colleagues that the latest version of RHEL is available with plenty of enhancements.
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.