Any way to keep a window on top of other windows?

Stuck.

I come from years of Linux. I'm trying to set things up in a familiar way.

I frequently have a full screen browser and a terminal on top of the browser, or a full screen spreadsheet and a floating calc.. etc. I used to be able to right click and select "stay on top". done. same feature across every Linux distro I've ever used. once you have it, you hate to lose it.

I'm hitting brick wall on this mac. Does anything exist? Any workarounds?

I'm an end user that's pretty comfortable in the terminal, but not a coder, so I'm reliant on the coding community.

thanks

MacBook Pro (2020 and later)

Posted on Dec 16, 2021 5:52 PM

Reply
Question marked as ⚠️ Top-ranking reply

Posted on Dec 19, 2021 3:39 PM

Sadly, the functionality doesn't exist in macOS natively. There were some hacks to achieve it via SIMBL and a plugin called 'afloat' but that code hasn't been updated in about 6 years. There may be another newer App that can accomplish the goal. On newer macOS things are locked down rather tight and using such a tool would be kludgy at best and unreliable. That being said, various Apps can stay on top if they are hardcoded to enable the capability. But there is no system wide control over all windows to selectively force any window to always be on top.


Since you mentioned Terminal and since you are coming from Linux you should probably install iTerm2 as a replacement for the built-in Terminal app. It has many more features and capabilities.


One such feature with iTerm2 is the ability to configure a Hotkey Window setting on various iTerm2 profiles. iTerm2 -> Preferences -> Profile -> Keys tab -> Configure Hotkey Window button. Then set a hotkey to launch your Profile and make sure 'Pin hotkey window (stays open on loss of keyboard focus) is checked as well as 'Floating window'.


When you hit the hotkey it will launch iTerm2 and it will stay on top.


As to other Apps, such as Calculator. Did you know that Spotlight can do calculations? Try it out. Nifty feature. You can also put the Calculator on the widget sidebar. You could built an Automator script and hotkey to launch the Calculator.


It seems the paid PCalc app has a float on top option among many other features. Some other calculators are available on the App Store with similar capabilities. So it really depends on the App and if the developers coded the option.

2 replies
Sort By: 
Question marked as ⚠️ Top-ranking reply

Dec 19, 2021 3:39 PM in response to DeeAyCee

Sadly, the functionality doesn't exist in macOS natively. There were some hacks to achieve it via SIMBL and a plugin called 'afloat' but that code hasn't been updated in about 6 years. There may be another newer App that can accomplish the goal. On newer macOS things are locked down rather tight and using such a tool would be kludgy at best and unreliable. That being said, various Apps can stay on top if they are hardcoded to enable the capability. But there is no system wide control over all windows to selectively force any window to always be on top.


Since you mentioned Terminal and since you are coming from Linux you should probably install iTerm2 as a replacement for the built-in Terminal app. It has many more features and capabilities.


One such feature with iTerm2 is the ability to configure a Hotkey Window setting on various iTerm2 profiles. iTerm2 -> Preferences -> Profile -> Keys tab -> Configure Hotkey Window button. Then set a hotkey to launch your Profile and make sure 'Pin hotkey window (stays open on loss of keyboard focus) is checked as well as 'Floating window'.


When you hit the hotkey it will launch iTerm2 and it will stay on top.


As to other Apps, such as Calculator. Did you know that Spotlight can do calculations? Try it out. Nifty feature. You can also put the Calculator on the widget sidebar. You could built an Automator script and hotkey to launch the Calculator.


It seems the paid PCalc app has a float on top option among many other features. Some other calculators are available on the App Store with similar capabilities. So it really depends on the App and if the developers coded the option.

Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Any way to keep a window on top of other windows?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.