Thanks for this great tool, Erik!
I’m running Ubuntu 20.04 GNOME with gnome-startup-applications to launch the start.sh script at start-up. See start.sh script here: Running on GNOME
So I had this issue: All my work was categorized as AFK in the WebGUI (I guess it didn’t recognize my Inputs?). I then killed the aw-watcher-afk and started it manually in verbose, and it detected my input without any issues; now, my work was also categorized as non-afk nice. My idea was that the server didn’t have enough time to start before the aw-watcher-afk, so I put a sleep of 10 seconds after the server started in the start.sh script. And now it seems to work as intended.
#!/bin/bash
cd ~/.local/opt/activitywatch # Put your ActivityWatch install folder here
./aw-server/aw-server &
sleep 10
./aw-watcher-afk/aw-watcher-afk &
./aw-watcher-window/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