
Hi Tobias,
Thank you for your help.
I tried adding the line
, startupHook = ewmhDesktopsStartup
but it made no difference. What I have realized, though, is that wmctrl correctly reports on which workspace each window is when I am running my laptop in "standalone" mode (ie, without external screens). When I plug in an external screen, suddenly wmctrl -l reports all windows as being in the currently active workspace:
0x02000005 2 ubuntu root@ubuntu: ~
0x02c000a3 2 ubuntu Mozilla Firefox
0x0200015c 2 ubuntu l@ubuntu: ~
if I workspace 2 currently has focus and if, eg, workspace 0 has focus then
0x02000005 0 ubuntu root@ubuntu: ~
0x02c000a3 0 ubuntu Yahoo! Mail - Mozilla Firefox
0x0200015c 0 ubuntu l@ubuntu: ~
Any idea on how I might fix this? Does it have to do with xinerama?
thanks!
~l
----- Original Message -----
From: Tobias Hommel
Initializes EwmhDesktops and advertises EWMH support to the X server Maybe this solves your problem.
On Tue, Jun 26, 2012 at 10:58:00AM -0700, Lara Michaels wrote:
Hello,
When I run wmctrl -l, it lists all my windows as being on the same workspace (workspace 0):
0x03600005 0 ubuntu l@ubuntu: ~ 0x02a000a3 0 ubuntu Mozilla Firefox 0x03a000a3 0 ubuntu Inbox - Local Folders - Mozilla Thunderbird
However, when I run wmctrl -d it "knows" xmonad is using 7 workspaces named "1" through "7":
0 * DG: N/A VP: N/A WA: N/A 1 1 - DG: N/A VP: N/A WA: N/A 2 2 - DG: N/A VP: N/A WA: N/A 3 3 - DG: N/A VP: N/A WA: N/A 4 4 - DG: N/A VP: N/A WA: N/A 5 5 - DG: N/A VP: N/A WA: N/A 6 6 - DG: N/A VP: N/A WA: N/A 7
How can I get wmctrl to play nicely with xmonad? From searching the web I thought this would do the trick:
import XMonad.Hooks.EwmhDesktops
main = do xmonad $ ewmh gnomeConfig { modMask = mod4Mask , manageHook = manageDocks manageHook defaultConfig , workspaces = myWorkspaces , normalBorderColor = "#cccccc" , focusedBorderColor = "#cd8b00" , borderWidth = 3 , layoutHook = showWName myLayout , logHook = ewmhDesktopsLogHook <+> dynamicLogXinerama , handleEventHook = ewmhDesktopsEventHook } `additionalKeysP` myKeys
but wmctrl still says all windows are on workspace 0.
thank you for any help ~l
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
Regards, Tobi