taskbar-focus 0.6.1

A tiny Pomodoro/focus timer that lives in the Windows tray and toggles Do Not Disturb
<div align="center">

<img src="focus-app-icons/icon-256.png" width="120" alt="Taskbar Focus app icon">

# Taskbar Focus

[![Crates.io](https://img.shields.io/crates/v/taskbar-focus?logo=rust&label=crates.io)](https://crates.io/crates/taskbar-focus)
[![CI](https://github.com/yoelrosenthal/taskbar-focus/actions/workflows/ci.yml/badge.svg)](https://github.com/yoelrosenthal/taskbar-focus/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/license-MIT-007ec6)](LICENSE)
[![Platform: Windows](https://img.shields.io/badge/platform-Windows-0078D4)](#install)

**A small focus timer for the Windows taskbar.**

It mutes notifications while you focus, brings them back for breaks, and can
lock the PC at the end of the day.

Windows 10 or 11 · No administrator rights · No network access

</div>

## Install

With [Scoop](https://scoop.sh):

```powershell
scoop bucket add taskbar-focus https://github.com/yoelrosenthal/taskbar-focus
scoop install taskbar-focus
```

Or download `taskbar-focus.exe` from the
[latest release](https://github.com/yoelrosenthal/taskbar-focus/releases/latest),
or run `cargo install taskbar-focus`.

## Using it

Taskbar Focus lives next to the clock. Click the ring to start or pause, and
right-click for everything else.

![Tray menu during a focus session, with pause, stop, presets and today's PC lock](docs/images/tray-menu.png)

The ring is red during focus, green during a break and grey when idle. The
crossed-out bell means notifications are muted.

![Progress ring and muted-bell icons in the Windows notification area](docs/images/tray-icons.png)

A small countdown window sits on the desktop. Drag it anywhere, or hide it from
the menu.

![Small timer window showing Focus 24:55](docs/images/timer-window.png)

By default it runs a Pomodoro cycle: focus, short break, focus again, and a long
break every fourth round. Presets for 25/5, 90/15 and 15/3 are included.

## Settings

Double-click the tray icon to open Settings.

![Settings window on the Timer page, with preset and lengths](docs/images/settings-window.png)

You can change the timer lengths, notifications and sounds, Do Not Disturb, the
timer window and all keyboard shortcuts.

## PC lock

Taskbar Focus can lock the PC at a set time, so the working day really ends.
Pick the days and times in **Settings → PC lock**.

![PC lock settings with a 5:45 PM lock on weekdays](docs/images/settings-lock.png)

You get a warning before the lock, and can postpone it or skip today until the
cutoff, 30 minutes before. After the lock, unlocking within 15 minutes locks the
PC again. On a **Strict** day you also can't exit the app or end the locked
period early. Signing out, shutting down and your password always work.

![Warning that the PC locks at 1:04 PM, with Postpone 30 min and Dismiss](docs/images/lock-warning.png)

The lock only happens while the app is running, so turn on **Start with
Windows**.

## Shortcuts

| Action | Default |
| --- | --- |
| Start or pause | <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>F</kbd> |
| Skip to the next interval | <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>B</kbd> |

These work from any app. The tray menu also has a letter for each line.

From the command line:

```powershell
taskbar-focus --start
taskbar-focus --toggle
taskbar-focus --stop
taskbar-focus --help
```

## Privacy

No account, no telemetry and no network access. Settings are stored as plain
text in `%APPDATA%\taskbar-focus`.

## Uninstall

Turn off **Start with Windows**, then run `scoop uninstall taskbar-focus` or
`cargo uninstall taskbar-focus`, or delete the exe.

## License

[MIT](LICENSE)