octalmage / robotjs

Node.js Desktop Automation.
http://robotjs.io
MIT License
12.31k stars 951 forks source link

Window management #161

Open dongryphon opened 8 years ago

dongryphon commented 8 years ago

Found this module and it looks awesome! Would love window management stuff such as:

If this is something you would like to have but not do all yourself, I might be able to contribute some of the above or at least help out.

octalmage commented 8 years ago

This is something I also want but its not a priority at the moment. Feel free to work on it if you want!

ghost commented 8 years ago

@octalmage would this also include control over Virtual Desktops (Spaces)? Could be nice to add this in with window management.

I recently created a basic package (C++) to do this in W10, for a side-project I was doing with robotjs, based on some nice write-ups and samples (repo with src/links for interested). But, it would probably be nicer if this functionality was available through robotjs desktop automations.

Might be harder to get this right on Linux and play nice with the different desktop environments, I think, ex. Elementary handles desktops differently than Ubuntu. wmctrl seems to do a good job though. For OSX I have no idea.

octalmage commented 8 years ago

A while back I started working on some code for Mac. I was able to get a list of windows and move one from Node. But I want to have the features for each os implemented before it's released, and that's a pretty large project. My current focus is on the screen/bitmap related code, but it's something I'd love to see down the road.

As far as controlling virtual desktops, I'm not sure if that would be in scope for this project. I want to keep the API and features consistent for each OS, if it could be done this way then it could be an option.

Oceanswave commented 8 years ago

Would love to see this happen -- if only just a list of windows and the active window.

octalmage commented 8 years ago

There is this:

https://github.com/octalmage/active-window

It's not great, but it works!

Oceanswave commented 8 years ago

Ah ha! Thank you!

starsoccer commented 7 years ago

+1 would love to see support