← Blog
10 min read

Pin Window on Top on Mac: Keyboard Shortcuts Guide

Quick answer

macOS has no native shortcut to pin a window on top. You need a third-party app. The fastest options: BetterTouchTool ($22) lets you assign any hotkey to pin the frontmost window above others. Rectangle Pro ($10) offers a built-in toggle. Hammerspoon (free) lets you script hs.window.focusedWindow():setLevel(3) and bind it to any key. All three work on the regular desktop but fail in fullscreen mode because macOS isolates fullscreen apps in separate Spaces.

If you specifically need notes pinned above everything, including fullscreen apps, Noticky ($6) is purpose-built for this. Press Cmd-Shift-N from anywhere to capture a note that floats above all windows and fullscreen Spaces. No other sticky note app achieves this on macOS 15 Sequoia.

Why macOS lacks a native "pin on top" shortcut

Windows users have PowerToys: press Win-Ctrl-T and the focused window stays above everything. macOS has nothing equivalent. Apple's window management philosophy centers on isolation: one fullscreen app per Space, no overlap, no distractions. This is great for focus, but terrible when you need reference information visible while working.

The technical reason is macOS's window level system. Every window has a numeric level (NSNormalWindowLevel = 0, NSFloatingWindowLevel = 3, etc.). Standard windows sit at level 0. To "pin" a window, you raise it to level 3 or higher. But fullscreen mode creates an entirely separate Space with its own compositing layer. No standard window level crosses that boundary. Third-party tools can pin windows above regular desktop apps, but the fullscreen wall remains.

Apple introduced Stage Manager in macOS Ventura, but it manages window groups, not pinning. It cannot keep a window visible above a fullscreen app. There is no indication Apple plans to add a native always-on-top shortcut.

Method 1: BetterTouchTool ($22)

BetterTouchTool (BTT) is the most versatile option for pinning any window on top with a custom keyboard shortcut.

Setup

  1. Open BetterTouchTool preferences
  2. Go to Keyboard Shortcuts in the left sidebar
  3. Click + Add New Shortcut
  4. Record your preferred key combination (e.g., Ctrl-Opt-T)
  5. In the action dropdown, search for "Pin/Unpin Focused Window to Float on Top"
  6. Save

Now press your shortcut on any focused window. It toggles between pinned (floating above all windows) and normal.

Limitations

BTT raises the window to NSFloatingWindowLevel. This works across all regular desktop Spaces but does not work in fullscreen mode. The moment you enter fullscreen in any app, your pinned window disappears. BTT also requires either a one-time $22 purchase or a $10 two-year license.

Best for

Power users who need to pin arbitrary windows (Finder, Terminal, browsers, any app) above other regular windows. If you already own BTT for its trackpad gestures or automation features, this is free with your existing license.

Method 2: Rectangle Pro ($10)

Rectangle Pro, the paid evolution of the popular free Rectangle window manager, includes a built-in always-on-top toggle.

Setup

  1. Install Rectangle Pro
  2. Open Preferences > Shortcuts
  3. Assign a hotkey to "Always on Top" (e.g., Ctrl-Opt-Cmd-T)
  4. Press the shortcut on any window to toggle

Rectangle Pro also lets you trigger always-on-top from the per-window title bar menu, giving you both keyboard and mouse access.

Limitations

Same fullscreen limitation as BTT: pinned windows vanish in fullscreen Spaces. Rectangle Pro's strength is combining window snapping, layouts, and pinning into one tool. If you already manage windows with Rectangle, this is the natural choice.

Best for

Users who want window management (snapping, resizing, layouts) combined with a pin-on-top toggle in a single $10 app.

Method 3: Hammerspoon (free, scriptable)

Hammerspoon is a macOS automation bridge that exposes system APIs through Lua scripting. It requires more setup but gives you full control.

Setup

  1. Install Hammerspoon from hammerspoon.org
  2. Open ~/.hammerspoon/init.lua
  3. Add the following:
hs.hotkey.bind({"ctrl", "alt"}, "T", function()
  local win = hs.window.focusedWindow()
  if win then
    local currentLevel = win:level()
    if currentLevel == 0 then
      win:setLevel(3)  -- NSFloatingWindowLevel
      hs.alert.show("Pinned on top")
    else
      win:setLevel(0)  -- NSNormalWindowLevel
      hs.alert.show("Unpinned")
    end
  end
end)
  1. Reload Hammerspoon config (Cmd-Shift-R in the Hammerspoon console)

Now Ctrl-Alt-T toggles the focused window between normal and floating.

Limitations

Same fullscreen limitation. Hammerspoon also requires comfort with Lua scripting and configuration files. It's not a polished GUI app. But for developers who enjoy scripting their environment, it's the most flexible option.

Best for

Developers and power users who want a free, infinitely customizable solution and don't mind editing Lua config files.

Method 4: Noticky for always-on-top notes ($6)

If your pinning need is specifically for notes and reference text, Noticky takes a fundamentally different approach. Instead of pinning existing windows, Noticky creates its own notes at a macOS window level that persists above fullscreen Spaces.

Setup

  1. Download Noticky from noticky.app
  2. Launch it (appears in menu bar, no Dock icon)
  3. Press `Cmd-Shift-N` from anywhere to create a note
  4. Type your content (Markdown supported: headings, bold, code blocks, lists)
  5. The note floats above everything, including fullscreen apps

There is no toggle step, no configuration. Every Noticky note is always on top by default. Position it anywhere on screen, and it stays there across app switches, Space changes, and fullscreen transitions.

Why it works in fullscreen

Noticky uses a macOS window level above the fullscreen compositing layer. Most always-on-top tools use NSFloatingWindowLevel (level 3), which is Space-bound. Noticky operates at a level the system renders independently of Space boundaries. This is the same mechanism macOS uses for its own system overlays. For a deeper technical explanation of how macOS window levels and fullscreen Spaces interact, see our complete guide to always-on-top apps on macOS.

Beyond pinning

Noticky is more than a pinned window. It includes Markdown WYSIWYG editing, smart tags with color coding, iCloud Sync across Macs, Touch ID lock for sensitive notes, templates, reminders, and export to .txt, .md, or .pdf. All for a one-time $6 purchase with no subscription.

Best for

Anyone who needs reference notes, code snippets, meeting agendas, or quick reminders visible above all windows, including fullscreen. If you work in fullscreen on a MacBook, this is the only sticky note app that solves the problem.

Comparison: pin-on-top shortcuts on macOS

FeatureBetterTouchToolRectangle ProHammerspoonNoticky
Custom keyboard shortcutYesYesYes (scripted)Cmd-Shift-N (global)
Pin any windowYesYesYesNotes only
Works above fullscreenNoNoNoYes
Works across SpacesSame Space onlySame Space onlySame Space onlyAll Spaces
Setup complexityGUI configGUI configLua scriptingZero config
Price$22$10Free$6
Extra featuresGestures, automationSnapping, layoutsFull Lua scriptingMarkdown, iCloud, Touch ID

The key distinction: BetterTouchTool, Rectangle Pro, and Hammerspoon all operate at the same macOS window level. They can float windows above regular desktop apps, but none of them crosses the fullscreen Space boundary. Noticky is the only option that works above fullscreen because it uses a different approach entirely.

Practical workflows using pin-on-top shortcuts

Developer: API reference while coding

Pin a Noticky note with your API endpoint format, auth headers, or environment variables in the top-right corner. Code in VS Code or Xcode fullscreen. Glance at the note without Cmd-Tab or swiping Spaces. When you need a different reference, press Cmd-Shift-N to create another note. For more on this workflow, see how to keep a sticky note visible in fullscreen on Mac.

Designer: brief and specs visible during design

Pin client feedback, color tokens, or spacing values next to Figma in fullscreen. No split screen, no lost zoom level, no interruption.

Meeting participant: agenda on top of Zoom

Press Cmd-Shift-N before a call. Paste your agenda. Go fullscreen in Zoom. The note floats above the video feed. Check off items as you go. After the meeting, export the note as Markdown and paste it into your project management tool.

Writer: outline visible in distraction-free mode

Working in iA Writer, Ulysses, or Bear fullscreen? Pin your article outline or key quotes on a Noticky note. Write without breaking your distraction-free environment to check reference material.

Alternatives that don't work (and why)

AppleScript / JXA: You can use System Events to bring a window to front with AXRaise, but this is a one-time action, not a persistent pin. The window drops behind the next click on another app.

macOS Shortcuts app: No action exists for setting window levels. You cannot build a Shortcut that pins a window on top.

Automator: Same limitation. No window level manipulation is available in Automator actions.

Stage Manager: Manages window groups, not window levels. Cannot pin a window above a fullscreen app. In fact, Stage Manager can make the problem worse by auto-hiding windows you want visible.

Mission Control hot corners: Expose all windows or switch Spaces, but cannot pin a specific window above others.

These are common suggestions in forum threads, but none of them provides a true always-on-top keyboard shortcut on macOS. You need a third-party tool.

FAQ

Does macOS have a built-in shortcut to pin a window on top?

No. macOS provides no native keyboard shortcut, menu option, or system setting to pin a window above other windows. This is a deliberate design choice by Apple. You need a third-party app like BetterTouchTool, Rectangle Pro, Hammerspoon, or Noticky.

Can I pin a window on top in fullscreen mode on Mac?

Standard always-on-top tools (BetterTouchTool, Rectangle Pro, Hammerspoon) cannot pin windows above fullscreen apps. macOS fullscreen creates a separate Space, and standard floating window levels do not cross Space boundaries. For notes specifically, Noticky is the only app that stays visible above fullscreen because it uses a window level above the fullscreen compositing layer.

What is the best free way to pin a window on top on macOS?

Hammerspoon is the best free option. It requires Lua scripting, but a simple 10-line script gives you a toggle shortcut. The limitation is that it does not work in fullscreen mode, only on the regular desktop.

Is there a macOS equivalent of Windows PowerToys "Always on Top"?

There is no exact equivalent. Windows PowerToys lets you pin any window with Win-Ctrl-T, and it works in most scenarios. On macOS, BetterTouchTool comes closest for general window pinning, but it cannot cross the fullscreen boundary. For notes above fullscreen, Noticky ($6) is the closest macOS equivalent to that seamless experience.

Can I use Cmd-Shift-N to create a pinned note on Mac?

Yes, if you have Noticky installed. Cmd-Shift-N is Noticky's global hotkey for instant note capture. Press it from anywhere, type your note, and it appears above all windows, including fullscreen apps. Noticky is available for $6 one-time at noticky.app.

The right tool depends on your use case

If you need to pin any arbitrary window above regular desktop apps, BetterTouchTool ($22) or Rectangle Pro ($10) are the most polished options. For a free scripted approach, Hammerspoon works.

If you need notes pinned above fullscreen apps, none of the general-purpose tools will work. Noticky ($6) is purpose-built for this. Press Cmd-Shift-N, type your note, and it stays visible above everything. For a detailed comparison of all the apps that offer always-on-top functionality on macOS, check our full always-on-top apps guide. And if you are evaluating sticky note apps more broadly, see our best sticky note apps for Mac roundup.

Get Noticky

Get Noticky — $6

A native macOS sticky note that stays visible in fullscreen. One-time purchase, no subscription.

⬇ Download — $6

macOS 15 Sequoia+ · < 5MB · Secure checkout

Related articles