Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popup position #76

Closed
arnotae opened this issue Feb 9, 2020 · 6 comments
Closed

Popup position #76

arnotae opened this issue Feb 9, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@arnotae
Copy link

arnotae commented Feb 9, 2020

Is it possible to always open the popup in the center of the screen (not following the mouse) ?

@p0deje p0deje added the enhancement New feature or request label Feb 10, 2020
@p0deje
Copy link
Owner

p0deje commented Feb 10, 2020

It's easy to pop it up in the center meaning that the top left corner of the window will be in center. Is that what you are looking for?

@arnotae
Copy link
Author

arnotae commented Feb 10, 2020

Exactly, I think the popup top left corner position should be like X = centerX - (popupWidth/2) and Y = centerY

@timharris777
Copy link

I would also like this feature. The way it follows the mouse is kind of annoying. I would prefer it to always popup centered on the screen. Similar to spotlight.

@timharris777
Copy link

Maybe setting this as a property so that it can be customized by the user.

@p0deje
Copy link
Owner

p0deje commented Feb 14, 2020

It should not be hard to add this feature, but I can't promise to implement it soon as I'm swamped at work. If anyone wants to give it a shot, you will need to change https://github.com/p0deje/Maccy/blob/master/Maccy/Maccy.swift#L87 so that instead of NSEvent.mouseLocation it would use the center of the screen.

p0deje added a commit that referenced this issue Feb 19, 2020
defaults write org.p0deje.Maccy popupPosition center
@p0deje p0deje closed this as completed Feb 19, 2020
@arnotae
Copy link
Author

arnotae commented Feb 19, 2020

Thanks @p0deje 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants