Docs / 02
A quiet listener.
A lasting record.
A small listener. A continuous record.
01What it records
The Python collector listens to Hyprland window events and stores application classes, window titles, and timed intervals in a local SQLite database. Active browser title changes are recorded immediately. Timestamps are stored in IST (+05:30).
This is a record of foreground windows. Focus quality is calculated from session duration and the thresholds you choose in the app.
~/.local/bin/hyprtrack/collector/hyprtrack-monitor.py
# Record a single sample
~/.local/bin/hyprtrack/collector/hyprtrack-monitor.py --once
# Use a different database
~/.local/bin/hyprtrack/collector/hyprtrack-monitor.py --db /path/to/hyprtrack.dbThe desktop dashboard reads the default database path. A custom --db file is a separate recording target.
02Start with Hyprland
Launch the AppImage once before adding autostart so the exported script exists. If your configuration uses the standard hyprland.conf syntax, add:
exec-once = $HOME/.local/bin/hyprtrack/collector/hyprtrack-monitor.pyThe Hyprland exec-once keyword runs a command when the compositor starts. Start the collector manually for the current session, or log out and back in to use the new autostart entry.
If you use the custom Lua setup that loads ~/.config/hypr/custom/execs.lua, add the collector inside your existing hyprland.start block. A fresh block looks like:
hl.on("hyprland.start", function ()
hl.exec_cmd("$HOME/.local/bin/hyprtrack/collector/hyprtrack-monitor.py")
end)Use the autostart style your configuration supports. Add the collector once; the lock beside the database prevents duplicate writers.
03Check the listener
Run these checks inside the same Hyprland session. You should see a collector process and a JSON description of the active window.
pgrep -af hyprtrack-monitor.py
hyprctl activewindow -jCollection continues when the dashboard is hidden or quit, as long as the collector process is running. The app is the viewer; the collector is the recorder.
Something missing? Help improve the handbook ↗