taskbar-focus 0.4.2

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)
[![Rust: stable](https://img.shields.io/badge/rust-stable-e57324)](https://www.rust-lang.org/)
[![Platform: Windows](https://img.shields.io/badge/platform-Windows-0078D4)](#install)
[![Offline-first](https://img.shields.io/badge/offline-first-4c1)](#privacy-and-local-data)

**A lightweight focus timer for Windows with automatic Do Not Disturb.**

Taskbar-Focus keeps the current session visible, silences notifications while
you focus, and restores them when it is time for a break.

Windows 10 or 11 · 64-bit · No administrator access required

</div>

## Install

### Scoop

[Scoop](https://scoop.sh) is the recommended installation method:

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

Update later with `scoop update taskbar-focus`.

### Other options

Download `taskbar-focus.exe` from the
[latest GitHub release](https://github.com/yoelrosenthal/taskbar-focus/releases/latest),
or install it from [crates.io](https://crates.io/crates/taskbar-focus):

```powershell
cargo install taskbar-focus
```

The standalone executable does not require an installer. Place it in any folder
and run it.

## Quick start

1. Open Taskbar-Focus. It runs in the Windows notification area beside the
   clock, and shows a compact countdown on the desktop.
2. Left-click the progress-ring icon (or the countdown) to start a focus
   session.
3. Left-click again to pause or resume. Right-click for breaks, presets,
   settings, and other actions.

Windows 11 may place new notification-area icons behind the **^** arrow. Open
the overflow area and drag the Taskbar-Focus icons onto the taskbar if you want
them to remain visible.

## Tray status

The notification-area icons show the current state without opening a window.

![Windows notification area with the Taskbar-Focus progress ring and muted-notifications icon](docs/images/tray-icons.png)

- The **progress ring** is red during focus, green during a break, grey while
  idle, and faded while paused.
- The **crossed-out bell** appears while notifications are muted. It can be
  hidden independently in Settings.

The same muted-notifications indicator can also appear beside the countdown in
the timer window.

## Timer window

A compact countdown is shown by default. Move it, resize it, and park it over
the taskbar or anywhere else on the desktop. Clicking it starts, pauses, or
resumes the timer.

![Taskbar-Focus timer window showing a focus countdown](docs/images/timer-window.png)

Turn it off in **Settings → Timer window**, or choose **Hide timer window** from
the tray menu. Taskbar-Focus remembers its size and position. Use **Reset window
size** to return to the default layout.

## Settings

Double-click the tray icon, or right-click it and choose **Settings...**. Search
from the top of the window, or open a page:

| Page | What it covers |
| --- | --- |
| Timer | Preset lengths for focus, short break, and long break |
| Sequence | Automatic cycles, strict focus, sleep, and restart |
| Notifications | Tray toasts, a centre overlay, and a screen flash |
| Do Not Disturb | Muting during focus, and optionally through short breaks |
| Sounds | Mute, plus which events play the Windows Asterisk cue |
| Timer window | Compact countdown visibility and always-on-top |
| Hotkeys | Global shortcuts |

![Taskbar-Focus Settings window on the Timer page](docs/images/settings-window.png)

Changes apply when you select **Save**. **Save as new preset** keeps the current
timer lengths as a separate preset. **Restore defaults** loads the built-in
values without overwriting your file until you save.

An update leaves an existing `config.toml` alone. Use **Restore defaults** if
you want the current factory settings.

## Focus sessions and breaks

New installs run a looping Pomodoro sequence:

1. Complete a focus session.
2. Start a short break automatically.
3. Start the next focus session when the break ends.
4. After enough focuses, take a long break, then start another cycle.

**Settings → Sequence** can turn the automatic chain off, skip auto-starting a
break or the next focus, or stop after a long break instead of starting another
cycle. Strict focus asks for confirmation before Stop or Skip can abandon a
running focus session. A running timer can count sleep, ignore it, or pause
when the machine wakes.

## When a session ends

Each completed focus or break can use any combination of:

- a **tray toast** in the notification area
- a **centre overlay** on the active monitor, with an optional wait-for-dismiss
  that pauses the timer until you continue
- a **screen flash** that pulses on every connected monitor

Overlay and flash stay visible while Do Not Disturb is on. Toasts wait until
muting lifts, so Windows can actually show them.

Sounds are separate: the Windows Asterisk cue from your sound scheme, with a
master mute and a switch per event.

## Do Not Disturb

When focus begins, Taskbar-Focus enables the same **Do not disturb** mode used
by Windows. When a break begins, it restores notifications. You can keep muting
through short breaks and only unmute on a long break. Windows priority apps and
contacts continue to follow your existing priority settings.

## Presets

Taskbar-Focus includes three presets:

| Preset | Focus | Short break | Long break |
| --- | ---: | ---: | ---: |
| Pomodoro 25/5 | 25 minutes | 5 minutes | 15 minutes |
| Deep Work 90/15 | 90 minutes | 15 minutes | 30 minutes |
| Short 15/3 | 15 minutes | 3 minutes | 10 minutes |

Presets can be edited, duplicated, and selected directly from the tray menu.

## Controls and shortcuts

| Action | Mouse | Default shortcut |
| --- | --- | --- |
| Start, pause, or resume | Left-click the tray icon or timer window | <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>F</kbd> |
| Skip to the next interval | Tray menu → **Skip to next** | <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>B</kbd> |
| Open Settings | Double-click the tray icon | — |
| Open all actions | Right-click the tray icon or timer window | — |

Global shortcuts work from any application and can be changed or disabled in
Settings.

## Command-line control

Commands are forwarded to the running application, so scripts and shortcuts do
not create a second timer.

```powershell
taskbar-focus --start
taskbar-focus --break
taskbar-focus --toggle
taskbar-focus --skip
taskbar-focus --stop
taskbar-focus --preset "Deep Work 90/15"
taskbar-focus --quit
```

Run `taskbar-focus --help` for the complete command list.

## Privacy and local data

Taskbar-Focus does not require an account, collect telemetry, or make network
connections. It never requires administrator rights.

Local files are stored in `%APPDATA%\taskbar-focus`:

- `config.toml` contains settings and presets in plain text.
- `activity.log` records application activity locally.

## Uninstall

With Scoop:

```powershell
scoop uninstall taskbar-focus
```

With Cargo:

```powershell
cargo uninstall taskbar-focus
```

If you downloaded the executable, delete it. Settings remain in
`%APPDATA%\taskbar-focus` until that folder is removed. Do Not Disturb is
restored when the application exits.

## License

[MIT](LICENSE)