AutoKey beta from pip in Ubuntu or Kubuntu - autokey/autokey GitHub Wiki
Use the AutoKey beta with pip in Ubuntu or Kubuntu
Table of Contents
- Install AutoKey
- Install pip
- Install AutoKey beta
- Run AutoKey beta
- Optional: Add AutoKey beta to your path permanently so you can run it from anywhere without specifying a path
- Optional: Add AutoKey beta to your path temporarily so you can run it from anywhere without specifying a path
- Upgrade AutoKey beta to the latest version
- Uninstall AutoKey beta
- Having trouble installing the beta?
Install AutoKey
The beta can coexist with your regular installation of AutoKey. In fact, adding the beta to a machine that already has AutoKey installed on it is a way to make sure the beta has all of its needed dependencies.
🟥 Important: AutoKey and the AutoKey beta will share the configuration files in the ~/.local/bin/autokey
directory, so it's a good idea to back those up before experimenting with the beta.
If you don't already have AutoKey installed:
-
Install the GTK version by typing this command in a terminal window in any directory:
sudo apt install autokey-gtk
-
Install the Qt version by typing this command in a terminal window in any directory:
sudo apt install autokey-qt
🟥 Important: If you'd rather not install AutoKey and would like to just install the AutoKey beta, you'll want to check that you have all of the dependencies needed by the beta before moving forward.
Install pip
- Install pip3 by typing this command in a terminal window in any directory:
sudo apt install python3-pip
Install AutoKey beta
- Install both versions of the AutoKey beta at once by typing this command in a terminal window in any directory:
pip3 install --user --pre autokey
Note that you'll get a warning about the scripts not being on your PATH. This is because the beta doesn't affect your system settings.
Run AutoKey beta
Since the beta doesn't create shortcuts that are automatically installed for you, you'll need to decide how you'd like to launch it. You can run it in a variety of ways.
Pick one of these:
- Run AutoKey beta from its directory:
- Change to the .local/bin directory:
cd ~/.local/bin
- Choose one of these commands to launch AutoKey:
- Launch AutoKey GTK without opening the main window:
./autokey-gtk
- Launch AutoKey GTK with the main window open:
./autokey-gtk -c
- Launch AutoKey Qt without opening the main window:
./autokey-qt
- Launch AutoKey Qt with the main window open:
./autokey-qt -c
- Launch AutoKey GTK without opening the main window:
- Change to the .local/bin directory:
- Run AutoKey beta from any directory:
- Open a terminal window in any directory.
- Choose one of these commands to launch AutoKey:
- Launch AutoKey GTK without opening the main window:
~/.local/bin/autokey-gtk
- launch AutoKey GTK with the main window open:
~/.local/bin/autokey-gtk -c
- Launch AutoKey Qt without opening the main window:
~/.local/bin/autokey-qt
- launch AutoKey Qt with the main window open:
~/.local/bin/autokey-qt -c
- Launch AutoKey GTK without opening the main window:
- Run AutoKey from a shortcut:
- Create a shortcut on your desktop, in your menu, on your taskbar, in your panel, etc.
- Pick any of these:
- Use this command in a shortcut to launch AutoKey GTK with the main window closed:
~/.local/bin/autokey-gtk
- Use this command in a shortcut to launch AutoKey GTK with the main window open:
~/.local/bin/autokey-gtk -c
- Use this command in a shortcut to launch AutoKey Qt with the main window closed:
~/.local/bin/autokey-qt
- Use this command in a shortcut to launch AutoKey Qt with the main window open:
~/.local/bin/autokey-qt -c
- Use this command in a shortcut to launch AutoKey GTK with the main window closed:
Optional: Add AutoKey beta to your path permanently so you can run it from anywhere without specifying a path
🟥 Important: This is not recommended because of security reasons and to prevent possible conflicts, but it can be done and if you've researched it, are aware of the possible risks, and are comfortable with it, it's an option.
Add AutoKey to your path permanently so you can run it from anywhere without having to specify a path. This adds the .local/bin
directory to your path:
- Open your
~/.bashrc
file in a text editor. - Add this line to the bottom of the file:
export PATH="$HOME/.local/bin:$PATH"
- Save the file.
- Close the file.
Optional: Add AutoKey beta to your path temporarily so you can run it from anywhere without specifying a path
🟥 Important: This is not recommended because of security reasons and to prevent possible conflicts, but it can be done and if you've researched it, are aware of the possible risks, and are comfortable with it, it's an option.
Add AutoKey to your path so you can run it from anywhere without having to specify a path. This temporarily adds the .local/bin
directory to your path and reverts at the next log-in:
- Type this command into a terminal window in any directory and press the Enter key:
export PATH="$HOME/.local/bin:$PATH"
Upgrade AutoKey beta to the latest version
- Check if your version of the AutoKey beta is up-to-date:
- Type one of these commands into a terminal window in any directory to check which version of the beta you are currently running:
~/.local/bin/autokey-gtk --version
or:
~/.local/bin/autokey-qt --version
- Visit the https://github.com/autokey/autokey/releases/ page to see the current beta version.
- If the latest release version is higher than your installed copy, type this command into a terminal window in any directory to upgrade AutoKey:
pip3 install --user --pre --upgrade autokey
If you'd like to be notified of beta releases automatically, choose Notifications from the Settings menu after clicking on your avatar in your GitHub account and customize those settings.
Uninstall AutoKey beta
- Type this command into a terminal window in any directory to uninstall AutoKey:
pip3 uninstall autokey
- You may need to clean up any residual configuration files that are left behind in the
autokey
directory, but not if you have another copy of AutoKey on the machine, since they share the configuration files:
rm ~/.local/bin/autokey*
- If you've created any shortcuts in your menu, on your desktop, taskbar, panel, etc., you'll want to remove those as well.
Having trouble installing AutoKey beta?
- Get information on pip dependencies, etc., here: https://github.com/autokey/autokey/wiki/Installing#pip-installation
- See the pip man page here: http://manpages.ubuntu.com/manpages/bionic/man1/pip.1.html