Skip to content
Tron16Public

About

Shake any Mac window to keep it floating on top. Click it to jump back in. Free, open source, no account or tracking.

Topics

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

FloatPin icon

FloatPin

Keep any Mac window always on top. Just shake it to pin it.

A tiny, free, open-source menu bar app that pins windows on top on macOS. A free alternative to Floaty, Afloat, and Helium. No account, or subscription.

Download · How it works · Build it yourself · Changelog · Contributing

Latest release Downloads Build macOS 14+ License: MIT


Animation: shaking a lecture window pins it, it stays on top while you work in a code editor, and you can drag it anywhere

Why

You're following a lecture, a tutorial, or a dashboard while you work in something else, and macOS keeps burying it. There's no built-in way to keep a window always on top on a Mac, so FloatPin adds one with a single gesture: grab the window, give it a shake, and it stays on top of everything until you shake it again.

The pinned window doesn't turn into a picture-in-picture box or jump to a corner. It stays exactly where you left it, at the same size, so it still feels like the same window.

Three steps: shake a window, it floats, click it to jump in

What it does

  • Shake to pin. Drag any window by its title bar and shake it. You hear a pop; let go and it's pinned right where you dropped it.
  • Feels like one window. While you're in that window, you're using the real thing. Click anywhere else, even another window of the same app (like a second Chrome window), and it floats above everything.
  • Move and resize it while it's floating. The real window follows along underneath, so nothing gets left behind.
  • Click to jump in. Clicking a pinned window brings you straight into the real one, and your click goes through.
  • Shake again to unpin, or click the little orange pin badge that shows up on hover.
  • ⌃⌥P pins or unpins the front window, and the menu bar lists every open window if you'd rather pick one.
  • Settings for shake sensitivity, click-through, border, frame rate, sounds, and launch at login.

Install

  1. Download FloatPin.dmg from the latest release.
  2. Open it and drag FloatPin into Applications.
  3. Open FloatPin. The first time, macOS will say it can't verify the developer, because FloatPin isn't notarized yet. Go to System Settings → Privacy & Security, scroll down, and click Open Anyway.
  4. The setup window asks for two permissions. Click Grant on each and flip the switch in System Settings; the checkmarks update on their own.

Prefer the terminal? After dragging it into Applications:

xattr -dr com.apple.quarantine /Applications/FloatPin.app && open /Applications/FloatPin.app

Private by default

FloatPin never touches the network. There's no analytics, no account, and nothing is saved to disk. It asks for two permissions, and only uses them for this:

Permission Why
Screen Recording To show a live view of the window you pinned. Frames stay in memory and are thrown away immediately.
Accessibility To keep the real window lined up under its pin and bring it forward when you click.

How it works

macOS doesn't let one app float another app's window. So FloatPin streams the window you pinned with ScreenCaptureKit into its own floating panel, and uses the Accessibility API to keep the real window glued directly underneath it.

Only one of the two is ever visible: the pin while you're in other apps, and the real window while you're in that app. That's the whole trick, and it's why a pinned window feels like the same window instead of a copy.

File What it does
Shake.swift Global mouse monitor and shake detection (counts direction reversals)
PinnedWindow.swift The floating panel, keeping the real window glued under it, the click hand-off, PinManager
WindowList.swift Finds windows with CGWindowListCopyWindowInfo, moves and raises them with Accessibility
Permissions.swift Permission checks, prompts, and deep links into System Settings
Views.swift SwiftUI setup and settings screens
HotKey.swift Global ⌃⌥P shortcut
AppDelegate.swift Menu bar menu and wiring

Build it yourself

You need macOS 14 or newer and the Xcode command line tools (xcode-select --install). No Xcode project, no dependencies.

git clone https://github.com/Tron16/FloatPin.git
cd FloatPin
./build.sh install   # build, copy to /Applications, launch
./build.sh dmg       # build FloatPin.dmg

Local builds are ad-hoc signed, so macOS treats every rebuild as a new app and forgets its permissions. Either reset them after rebuilding:

tccutil reset Accessibility com.ashish.FloatPin && tccutil reset ScreenCapture com.ashish.FloatPin

or sign with your own certificate so they stick: SIGN_IDENTITY="Apple Development: you@example.com (XXXX)" ./build.sh install.

When something misbehaves

  • Permissions look on but nothing happens: remove FloatPin from both lists in System Settings, add it back, and relaunch (or use the tccutil command above).
  • Screen Recording stays unchecked after granting it: click Relaunch in the setup window. macOS often only applies it after a restart of the app.
  • macOS 15 asks about screen recording again: that's a monthly macOS reminder for every app that uses it. Allow it.
  • Shaking doesn't trigger: lower "Back-and-forth moves needed" or "Shake distance" in Settings.
  • A pinned window lands slightly off: some apps limit their own minimum size or position. Resize the pin a little and it'll re-sync.

Still stuck? Open an issue with your macOS version and what you were pinning.

FAQ

How do I keep a window always on top on a Mac?

macOS doesn't have a built-in "always on top" option. With FloatPin installed, drag the window by its title bar and give it a quick shake. It stays pinned above every other window until you shake it again. You can also press ⌃⌥P to pin whatever window is in front.

Does it work with Chrome, Safari, Zoom, VS Code, and other apps?

Yes. FloatPin works with any regular app window, including browser windows, video players, PDFs, notes, terminals, and editors. You can even pin one Chrome window and keep working in another.

Can I pin more than one window?

Yes. Shake as many windows as you like. Each one floats on its own, and the menu bar lists them all.

Is it a free alternative to Floaty, Afloat, or Helium?

Yes. FloatPin is free and open source (MIT), with no paid tier. The difference is that it keeps the real window at the same size and spot instead of shrinking it into a picture-in-picture box.

Does it slow my Mac down?

No. It only streams the windows you pin, and only while they're pinned. You can lower the frame rate in Settings if you're on battery.

Why does it need Screen Recording permission?

To draw a live view of the pinned window above everything else. Nothing is recorded, saved, or sent anywhere. See Private by default.

Contributing

Bug reports, ideas, and pull requests are all welcome. See CONTRIBUTING.md for how the code is laid out and how to send a change.

License

FloatPin is released under the MIT License.

Made by Ashish Nattami Subramanian. If it saves you some alt-tabbing, a ⭐ helps other people find it.

About

Shake any Mac window to keep it floating on top. Click it to jump back in. Free, open source, no account or tracking.

Topics

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages