This watcher is no longer maintained. It probably still works, But I'll no longer fix it if it breaks. It is recommended to use awatcher instead.
Previous readme
A DBus-based ActivityWatch watcher for GNOME. It allows you to use ActivityWatch on GNOME under Wayland.
You need the following in order to use this watcher:
- Install and set up ActivityWatch
- Install the Focused Window DBus shell extension
I currently do not provide pre-built binaries, so you'll need to compile the
project from source. You need to have poetry
installed.
poetry install
poetry run pyinstaller --clean aw-watcher-gnome.spec
- Copy the
dist/aw-watcher-gnome
directory to your ActivityWatch directory.
- In the ActivityWatch config directory, open
aw-qt/aw-qt.toml
- In
autostart_modules
, replace"aw-server", "aw-watcher-afk"
with"aw-watcher-gnome"
(if the lines in the file are commented out, uncomment them) - Restart
aw-qt
- Disable aw-qt or any other autostart methods, if they are enabled
- Copy the services from the
systemd
directory to
~/.local/share/systemd/user
- Run
systemctl enable --user --now aw-server && systemctl enable --user --now aw-watcher-gnome