We’re currently working on improving the installation experience by creating proper installers and packages, but for now we offer standalone archives containing everything you need.
The prebuilt packages are known to sometimes have issues on Linux. If they don’t work for you, please create an issue and consider Installing from source.
- First, grab the latest release from GitHub for your operating system.
- Unzip the archive into an appropriate directory and you’re done!
The aw-qt application is the easiest way to use ActivityWatch. It creates a trayicon and automatically starts the server and the default watchers.
Simply run the :code:`./aw-qt` binary in the installation directory (either from your terminal or on Windows by double-clicking). You now should see an icon appear in your system tray.
If you are running GNOME 3 or another desktop that does not support system trays, or if for some reason Qt can’t be used on your machine, have a look at the Installing from GNOME section below.
You should now also have the web interface running at localhost:5600 and will in a few minutes be able to view your data under the Activity section!
If you want more advanced ways to run ActivityWatch (including running it without aw-qt), check out the “Running” section of Installing from source.
If you are using a proxy, activitywatch will not work by default. To circumvent this you can set the environment variable HTTP_PROXY before starting aw-qt. How to set an environment variable depends on your operating system, use Google if you are unsure how to do this.
You might want to make
aw-qt start automatically on login.
We hope to automate this for you in the future but for now you’ll have to do it yourself.
Searching the web for “autostart application <your operating system>” should get you some good results that don’t take long.
Configuration files for ActivityWatch can be found at the following default locations:
~/.config/activitywatchor the path defined by the
- Mac OS X:
Config options for the server, client, and default watchers are listed below:
hostHostname to start the server on. Currently only
portPort number to start the server on.
storageType of storage for holding buckets and events. Supported types are
hostnameHostname of the server to connect to.
portPort number of the server to connect to.
timeoutTime in seconds with no activity required to become afk.
poll_timeTime in seconds between checks for activity.
update_timeNot yet implemented.
poll_timeTime in seconds between window checks.
exclude_titleDon’t track window titles
update_timeNot yet implemented.
Installing on GNOME¶
As an alternative for users of GNOME 3 and other DEs that don’t support app trays, or simply to avoid depending on Qt, you can place two simple workaround scripts in your ActivityWatch install folder:
#!/bin/bash cd ~/.local/opt/activitywatch # Put your ActivityWatch install folder here ./aw-server & ./aw-watcher-afk & ./aw-watcher-window & # you can add --exclude-title here to exclude window title tracking for this session only notify-send "ActivityWatch started" # Optional, sends a notification when ActivityWatch is started
#!/bin/bash pkill aw- notify-send "ActivityWatch killed" # Optional, sends a notification when ActivityWatch is killed
Don’t forget to
chmod +x start.sh and
chmod +x kill.sh.
Then you can create two desktop files for these scripts to show up among your apps:
[Desktop Entry] Name=Start ActivityWatch Comment=Start AW Exec=~/.local/opt/activitywatch/start.sh Hidden=false Terminal=false Type=Application Version=1.0 Icon=activitywatch Categories=Utility;
[Desktop Entry] Name=Kill ActivityWatch Comment=Kill AW Exec=~/.local/opt/activitywatch/kill.sh Hidden=false Terminal=false Type=Application Version=1.0 Icon=activitywatch Categories=Utility;