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.bat
To build and run, use this command from the root directory:
.\build.bat && .\topper.exe
Copy 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
up
anddown
arrow keys to choose between windows. - Enter characters to narrow down windows.
- Press
Enter
to choose a window to toggle. - Press
Escape
to exit without doing anything.
topper --help
This project was inspired by PowerToys' Window on Top Feature, and is meant to be a very lightweight TUI version.