topper is a tiny C++ console application for Windows that lets you search, filter and interactively select any top-level window by title, then toggle its “always-on-top” (WS_EX_TOPMOST) state. It’s perfect for anyone who wants a quick keyboard-driven way to pin/unpin windows without touching the mouse or hunting through window menus.
This program is intended to work only on the Windows Operating System.
Use Developer Command Prompt for VS 22 console to build the project, which can be installed using the Visual Studio Installer.
To build, use this command from the root directory:
.\build.batTo build and run, use this command from the root directory:
.\build.bat && .\topper.exeCopy the executable, pin it to Start, or add it into your $PATH to access it from anywhere.
--twot stands for "toggle window on top". Just topper would also invoke the same command.
Toggle windows on top in this way:
topper --twot- Use the
upanddownarrow keys to choose between windows. - Enter characters to narrow down windows.
- Press
Enterto choose a window to toggle. - Press
Escapeto exit without doing anything.
topper --helpThis project was inspired by PowerToys' Window on Top Feature, and is meant to be a very lightweight TUI version.