A lightweight Windows utility that toggles Focus Follows Mouse (X-Mouse / Active Window Tracking) with a single click — no digging through Control Panel required.
Windows buries the "hover to focus" setting deep in Control Panel. This utility puts a one-click shortcut on your desktop, and the icon updates to show the current state at a glance.
- Instant toggle — applies the change immediately, no reboot needed
- Dynamic icon — shortcut icon switches between
on.icoandoff.ico - Silent execution — runs via
pythonw.exewith no console window
- Windows 10 or 11
- Python 3.8+
-
Clone the repository:
git clone https://github.com/grenkoff/focus-toggler.git cd focus-toggler -
Create a virtual environment and install dependencies:
python -m venv .venv .venv\Scripts\activate pip install -r requirements.txt
-
Run the script once to create the desktop shortcut:
python main.py
-
A shortcut named FocusToggler will appear on your Desktop.
-
Double-click it anytime to toggle the mode. The icon updates automatically.
focus-toggler/
├── assets/
│ ├── on.ico
│ └── off.ico
├── main.py
├── requirements.txt
├── CHANGELOG.md
├── LICENSE
└── README.md
This project is licensed under the MIT License. See the LICENSE file for details.