A compact, always-on-top Windows productivity timer.
Double-click FocusTimer.exe. Windows asks for administrator permission because
browser-wide website blocking requires temporary access to the Windows hosts file.
Use the cog to set:
- the session length (60 minutes by default);
- application executable names such as
spotify.exeor full executable paths; - website domains such as
youtube.com; - an optional completion sound.
Play activates blocking. Pause, Stop, completion, and closing the app all remove
the website block immediately. Settings are saved under %APPDATA%\FocusTimer.
- Application blocking closes matching programs shortly after they start.
- Website blocking applies to all browsers. An already-open page may need a refresh.
- The app adds only hosts-file lines marked
# FocusTimer-managedand removes only those lines. - Blank completion sound means the standard Windows notification sound.
If you edit Program.cs, right-click build.ps1 and choose Run with PowerShell.
No .NET SDK is needed; the script uses the .NET Framework compiler included with
Windows.