flexibeast / ewmctrl

Use wmctrl to manage desktop windows from Emacs
27 stars 7 forks source link

Support for multiple workspaces #2

Open sanel opened 9 years ago

sanel commented 9 years ago

Hi,

Really nice package; kudos! One really nice feature would be to add support for multiple workspaces/desktops. As I can see now, only single workspace is supported and e.g. I use 2-3 of them quite often.

Suggestion. It can look like this:

PID   Workspace   Name
----  -------     ------
123   1           firefox
234   2           xterm
...

And option to move between workspaces would be nice too :)

flexibeast commented 9 years ago

Thank you for your kind words!

Yes, i agree this would be very useful. :-) i'll see what i can do!

flexibeast commented 9 years ago

@sanel

Functionality added. :-) You can limit which desktops/workspaces are included via the new filtering functionality; see the README for details.

tumashu commented 9 years ago

can I switch desktop by editing desktop number?

sanel commented 9 years ago

Awesome! Tested and works.

However, I discovered one issue. For windows which aren't 'normal' windows (desktop, panel), it would print 4294967295 as desktop number. I presume wmctrl would return -1 or such and IMHO those windows should not be shown in the list.

Also, how hard would be to have option for showing all windows from all desktops? Here is simple use-case: I'm on desktop 1 with Emacs and would switch to desktop 2 with FFox.

flexibeast commented 9 years ago

@tumashu:

Do you mean, switch the desktop a given window is on?

flexibeast commented 9 years ago

@sanel:

i've just opened an issue about the first problem you mentioned - thanks for noting it!

Re. the second problem: Argh, sorry! ewmctrl was supposed to already do that. i've opened an issue for that also. Thanks!

sanel commented 9 years ago

:) awesome!

flexibeast commented 9 years ago

@sanel:

i've just tried ewmctrl under GNOME Classic - rather than under i3, which is my usual desktop environment - and all windows on all desktops/workspaces are indeed listed. Under i3, however, a window on my second workspace is listed as being on my first workspace - when i run wmctrl -d from the command line, an error is returned:

Cannot get number of desktops properties. (_NET_NUMBER_OF_DESKTOPS or _WIN_WORKSPACE_COUNT)

What desktop environment are you running ewmctrl under? (And could you please reply under issue #4?)

sanel commented 9 years ago

Replied. I presume i3 does not implement freedesktop.org specs correctly.

flexibeast commented 9 years ago

@sanel:

Yeah, looks like i might have to report that as an i3 issue.

flexibeast commented 9 years ago

@sanel:

Issue #3 should now be resolved; could you please check, and report your results under that issue?