heynote icon indicating copy to clipboard operation
heynote copied to clipboard

FR: Always-on-top mode

Open luckman212 opened this issue 1 year ago • 4 comments

I will see if I can figure out how to make a PR for this, but...

It would be very nice to have a floating always-on-top window mode, so reference notes could be floated above VSCode (or any other window)

I had written a similar scratchpad type of tool for Hammerspoon and by setting a couple of flags on the Window type, you could get the window to float and also have a thinner titlebar (NSWindowStyleMaskUtilityWindow) which was quite appealing.

image

see https://developer.apple.com/documentation/appkit/nswindowstylemask/nswindowstylemaskutilitywindow

luckman212 avatar Dec 22 '23 22:12 luckman212

That's a task for your window manager.

Drugoy avatar Dec 23 '23 14:12 Drugoy

@Drugoy Unfortunately on macOS there is no such feature in the native WM, and no way for a 3rd party app to affect another app's windows to my knowledge.

luckman212 avatar Dec 23 '23 15:12 luckman212

There are Mac window managers. You might look into Amethyst and see how they do it. https://github.com/ianyh/Amethyst

alilleybrinker avatar Dec 23 '23 23:12 alilleybrinker

I never said there were no window managers, just that there is no way for one to change the properties of another app's windows (for example setting the AlwaysOnTop attribute).

Amethyst looks like a nice WM, but I see nothing in the docs about making windows float.

luckman212 avatar Dec 24 '23 00:12 luckman212