I'm trying to create one gvim per workspace using this script as a starting point: http://www.openhex.org/notes/2011/1/27/one-vim-server-per-desktops
I know when I first found this script months ago, wmctrl -d listed four workspaces. But now when I try it, it shows only one:
$ wmctrl -d
0 * DG: 7208x1003 VP: 0,0 WA: 0,0 1802x976 Workspace 1
Listing the windows shows that all are on the same desktop, but spaced screen-widths apart:
$ wmctrl -lGx
0x02200003 0 0 1952 1802 27 gnome-panel.Gnome-panel ned-vbox Bottom Expanded Edge Panel
0x0260001e 0 0 0 1802 1003 desktop_window.Nautilus ned-vbox x-nautilus-desktop
0x04600004 0 332 140 1169 722 gnome-terminal.Gnome-terminal ned-vbox Terminal
0x046000c6 0 116 288 1433 512 gnome-terminal.Gnome-terminal ned-vbox Terminal
0x0480001e 0 388 48 1604 948 gvim.Gvim ned-vbox .bashrc (~) - GVIM
0x04604c55 0 784 48 1214 948 gnome-terminal.Gnome-terminal ned-vbox Terminal
This is Ubuntu 10.10 running compiz in a virtual box (which is why the screen is 1802 pixels wide).
Why are my workspaces not visible in wmctrl? They behave properly in the GUI, all the shortcut keys work as they should, and menu items to move windows among workspaces are fine. How do I get wmctrl to show me what I want? Is there another way I can get workspace info accurately?