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

Moving Apps To Spaces #3613

Open
bocciaman opened this issue Mar 7, 2024 · 2 comments
Open

Moving Apps To Spaces #3613

bocciaman opened this issue Mar 7, 2024 · 2 comments

Comments

@bocciaman
Copy link

Is there a Hammerspoon script to move apps to different spaces (^NUM)? I've tried the MoveSpaces spoon, but the documentation is blank. I have the spoon installed but no way to control or manage it.

@ulises-castro
Copy link

ulises-castro commented Apr 15, 2024

My approach is list all spaces, store spaces ids into an array, then look for app's windows (by using window.filter) and move every window to the desire space.
I did not able to find another way, the documentation is not good.

@dmgerman
Copy link

Here a spoon i have been writing for managing spaces. The fundamental problem is that space management in OSX is a joke/mess. for example, full screen applications get their own space.

https://github.com/dmgerman/hs_dmg/blob/main/Spoons/BetterSpaces.spoon/init.lua

there are functions to move to the ith-space in a monitor (skipping fullscreen applications).

if interested, I can fork it into its own repo, so others can contribute.

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

No branches or pull requests

3 participants