Forgot to Stop Hubstaff? See What It Captures Locally
By: Evgeny Padezhnov
A timer that keeps running after work ends records more than hours.
Hubstaff is built for remote teams. Managers can turn on screenshots, app and URL tracking, and activity levels. All of it runs only while the timer is on. So the timer is the whole privacy boundary. Forget to stop it, and lunch, a personal email, or a banking tab can land in the employer's Activity view.
This post covers the problem behind a small, free, open-source companion app. It notices when Hubstaff runs while nobody works, and it keeps a local record of what the screen showed. The sections below cover what Hubstaff actually captures, where that data goes, how the watcher works, and where the approach falls short.
What Hubstaff Captures While the Timer Runs
Hubstaff's own documentation is fairly explicit. The data falls into three groups.
Screenshots
According to Hubstaff's privacy-first monitoring page, managers can enable screenshots "to capture what their team is working on while the timer is running." The same page states Hubstaff never records video or webcam footage.
Screenshots show up in the Activity section of the Hubstaff app, tied to the tracked time. How Hubstaff Tracking Works says the app sends alerts as screenshots are captured. A glance at the tray icon is not enough, though. Those alerts come after the capture.
Apps and URLs
Hubstaff can collect the applications and URLs used during a session. That is optional per organization. A personal site visited with the timer on becomes part of the work record.
Keyboard and mouse activity
Hubstaff measures keyboard and mouse activity and shows it as an overall activity percentage. According to the time and activity tracking page, it "does not capture keystrokes or private content." It only checks whether input happens at all.
In plain terms: Hubstaff knows that someone typed. It does not know what they typed. Screenshots can still show the result on screen.
The same page notes that low activity can be normal. Research-heavy roles average lower rates. Writing-heavy roles score higher. A forgotten timer during a meeting at another desk will show near-zero activity. That looks bad on a report even when nothing wrong happened.
Where the Data Goes and Who Sees It
Knowing what is captured is half the picture. The other half is storage and access.
- Transport. All data, screenshots included, is uploaded over HTTPS. Hubstaff states it uses TLS 1.2+ for all encrypted tunnels.
- Storage. Screenshots and other captured data live in Amazon S3. They are never public. Access goes through expiring signed URLs, valid for a short period only.
- Access. Screenshots are visible to the user, their managers, and organization owners. Teams on Hubstaff's Insights platform see more detail on time and activity. The tracked person can see the same data they see.
- Ownership. The Hubstaff Privacy Policy says the employer is the data controller for work-session data. Requests about that data go to the employer, not to Hubstaff.
Key point: once a screenshot uploads, the employer controls it. Hubstaff's encryption protects it from outsiders. It does not protect it from the manager.
The deletion trap
Users can delete their own screenshots. Hubstaff's tracking page states the catch clearly: deleting a screenshot also deletes the tracked time for it.
Common mistake: deleting a private screenshot after the fact and losing billable minutes along with it. For hourly contractors, that is real money. Prevention costs less than cleanup.
Hubstaff also mentions a blur option for screenshots. It is an organization setting, so the user has to ask a manager. Blur reduces the damage. It does not stop the capture.
How the Local Watcher Works
The goal is narrow. Detect the "timer on, human gone" state early. Keep a private, local trace of what the screen looked like at that moment. Nothing leaves the machine.
The core loop has three checks:
- Is a Hubstaff process running?
- How long has the machine been idle?
- If both conditions hold past a threshold, notify and log.
Linux version
On Linux with X11, xprintidle returns idle time in milliseconds. notify-send raises a desktop notification.
#!/usr/bin/env bash
# hubstaff-watch.sh: warn when Hubstaff runs while the user is idle
IDLE_LIMIT_MS=$((10 * 60 * 1000)) # 10 minutes
LOG_DIR="$HOME/.local/share/hubstaff-watch"
mkdir -p "$LOG_DIR"
while true; do
if pgrep -fi hubstaff >/dev/null; then
idle=$(xprintidle)
if [ "$idle" -gt "$IDLE_LIMIT_MS" ]; then
ts=$(date -Iseconds)
notify-send -u critical "Hubstaff still running" \
"Idle for $((idle / 60000)) min"
echo "{\"ts\":\"$ts\",\"idle_ms\":$idle}" >> "$LOG_DIR/events.jsonl"
fi
fi
sleep 60
done
The log is plain JSON Lines. Developers can grep it, load it into a spreadsheet, or diff it against the Hubstaff timesheet at week's end.
macOS version
macOS exposes idle time through ioreg. The value is in nanoseconds.
idle_s=$(ioreg -c IOHIDSystem | awk '/HIDIdleTime/ {print int($NF/1000000000); exit}')
if pgrep -fi hubstaff >/dev/null && [ "$idle_s" -gt 600 ]; then
osascript -e 'display notification "Idle with timer on" with title "Hubstaff"'
fi
Run it from launchd every minute, or wrap it in the same while loop.
Seeing what the screen showed
The title promise is "see what it captures." A local watcher cannot read Hubstaff's uploaded screenshots. Those sit in the employer's S3 storage. But it can record what the screen showed at the same moment.
On macOS, screencapture -x takes a silent screenshot. On GNOME, gnome-screenshot -f does the same. The watcher saves one frame per alert into the local log folder:
screencapture -x "$LOG_DIR/$(date +%Y%m%d-%H%M%S).png"
After that, the user can open the folder and see the risk directly. A personal chat window, a bank tab, a medical portal. If it appears in the local frame, it may appear in Hubstaff's capture too.
Common mistake: keeping those local screenshots forever. They hold the same sensitive content Hubstaff might have caught. A cleanup line fixes that:
find "$LOG_DIR" -name '*.png' -mtime +7 -delete
Seven days is enough to cross-check a weekly timesheet.
What Does Not Work (Yet)
Honest limits matter more than features here.
- Process is not timer.
pgrepconfirms that Hubstaff runs. It does not confirm that the timer is on. The desktop app often stays open with the timer stopped. That produces false alerts. The fix needs a reliable way to read timer state, and the shell checks above do not provide one. - Idle is not absence. Reading a long document without touching the mouse counts as idle. The 10-minute threshold is a compromise. Researchers may need 20 or more.
- Wayland.
xprintidledepends on X11. Many Wayland sessions do not expose idle time the same way. Desktop-specific tools are needed there. - Not a mirror of Hubstaff. Local frames and Hubstaff's frames are taken at different moments. The watcher shows likely exposure, not the exact captured image.
In practice, the false alerts are the main annoyance. A noisy watcher gets muted, and a muted watcher protects nothing. Tuning the threshold to the actual work pattern matters more than any extra feature.
Why Not Just Switch Tools?
Sometimes the employer picks the tool. Then a watcher is the only lever. When the choice is free, open-source time trackers avoid the problem from the start.
The Super Productivity roundup of open-source trackers lists several options:
- Super Productivity starts timers from tasks and keeps data local by default, with optional sync. It is intentionally individual-focused.
- Timewarrior offers very fast start/stop tracking from the shell. It has no polished GUI by default.
- TimeTagger centers on an interactive timeline with tags, CSV/PDF reports, and Docker self-hosting.
- Kimai suits teams that need manager approvals and permission layers. It supports invoicing, a JSON API, and 2FA with TOTP.
- solidtime covers projects, billable rates, and roles. It imports from Toggl and Clockify and uses the AGPL v3 license.
None of these take screenshots by default. That is the core difference from monitoring tools. A broader look at that trade-off sits in this comparison of remote work tools and tools that track you.
Self-hosting has its own cost. Chronoid's review notes that Kimai is still "a real server application," with upgrades, backups, email setup, and user management. For a solo contractor, a local tool like Timewarrior often makes more sense.
The Same Pattern Elsewhere
The watcher follows a general pattern. Find a meter that runs in the background. Add a small local check. Alert before the cost lands.
The same idea works for AI coding tools that bill by usage. A 30-line mod that tracks and caps Claude Code cost applies the same logic to tokens instead of screenshots. A forgotten meter is a forgotten meter, whatever it measures.
If it works, it is correct. A 20-line script that fires reliably beats a polished app that nobody keeps running.
Frequently Asked Questions
How does local-first activity tracking differ from cloud-based employee monitoring?
Local-first tools keep records on the user's own device by default, and syncing is opt-in. Cloud monitoring such as Hubstaff uploads screenshots and activity data to remote storage. There the employer, as data controller, decides access and retention.
Can deleting a Hubstaff screenshot fix a forgotten timer?
Partly. Hubstaff lets users delete their own screenshots, but the tracked time for that screenshot goes too. Preventing the capture is cheaper than removing it.
Does Hubstaff record what is typed?
According to Hubstaff, no. It records whether keyboard and mouse input occurs and shows an activity percentage. Screenshots can still show typed text on screen.
What to Try Right Now
Try it: install xprintidle (Linux) or use the ioreg one-liner (macOS). Save the loop above as hubstaff-watch.sh and run it with a 10-minute threshold for one workweek. On Friday, compare events.jsonl with the Hubstaff timesheet. Every matching entry is a capture window that was open with nobody at the desk.
Information is accurate as of the publication date. Terms, prices, and regulations may change — verify with relevant professionals.