knowing what is on each workspace and/or knowing which workspace I am looking at

Dear all, I never managed to have a way of knowing either 1- on which workspace a particular program is open or 2- which workspace is being displayed on each of my monitors (eg, "on this monitor you are looking at workspace 1") Is there a way to get either of these behaviors? Without this information, I do spend some serious time zapping across workspaces to find the window I need. I thought that an easy way to address (2) would be to use an OSD (like libnotify) to pop up a notification providing the workspace name/number when the user switches workspaces. Is there a "hook" in xmonad to which I could link a command "run notification saying this is workspace X"? Many thanks for any help ~lara

On Sat, Jul 17, 2010 at 23:34, Lara Michaels
Dear all,
I never managed to have a way of knowing either
1- on which workspace a particular program is open
or
2- which workspace is being displayed on each of my monitors (eg, "on this monitor you are looking at workspace 1")
Is there a way to get either of these behaviors? Without this information, I do spend some serious time zapping across workspaces to find the window I need.
Try xdotool and XMonad.Hooks.EwmhDesktops

Hello, To show the name of the current workspace when you change it, you can use XMonad.Layout.ShowWName. I don't know a way to query where a window is, but XMonad.Actions.WindowGo has a 'raise' function that will make visible a window that meets a Query. I believe this is what you are looking for. Hope that helps ! -- Etienne Millon

When it comes to the workspace part, what about xmobar/dzen in a
logHook? The default sorting method there may not be the best for
multiple screens, therefore you might like to try to use one of the
xinerama sorting modes (getSortByXineramaRule &
getSortByXineramaPhysicalRule from X.U.WorkspaceCompare). They place
the windows for each of your screens first, so the first screen in the
list is your leftmost monitor. It all depends on how you use your
workspaces if this is appropriate for you.
On Sat, Jul 17, 2010 at 21:51, Etienne Millon
Hello,
To show the name of the current workspace when you change it, you can use XMonad.Layout.ShowWName.
I don't know a way to query where a window is, but XMonad.Actions.WindowGo has a 'raise' function that will make visible a window that meets a Query. I believe this is what you are looking for.
Hope that helps !
-- Etienne Millon
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

It seems like you need a "bar" that shows you these info.
Something like xmobar, dzen, plus a logHook or any graphical pager with
EwmhDesktops.
Some pagers shows windows icons at the workspaces, others a "preview" of the
layout, etc.
I've heard there's some problem though in setting them to understand xmonad
multiple monitors.
Henrique G. Abreu
On Sat, Jul 17, 2010 at 16:34, Lara Michaels
Dear all,
I never managed to have a way of knowing either
1- on which workspace a particular program is open
or
2- which workspace is being displayed on each of my monitors (eg, "on this monitor you are looking at workspace 1")
Is there a way to get either of these behaviors? Without this information, I do spend some serious time zapping across workspaces to find the window I need.
I thought that an easy way to address (2) would be to use an OSD (like libnotify) to pop up a notification providing the workspace name/number when the user switches workspaces. Is there a "hook" in xmonad to which I could link a command "run notification saying this is workspace X"?
Many thanks for any help
~lara
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

Hi Henrique,
A graphical pager would also be a great way to solve both my problems. I am on Ubuntu and tried enabling the one that comes with the Gnome panel ("Workspace switcher"), but though everything works I can only see the shaded contours of the windows on the different workspaces... Is there a way to have it show either an icon or a miniaturized "preview" of what each window is displaying?
Unfortunately "pager" is one of the most difficult words to google for, since it assumes that I mean "page". : )
Many thanks!
lara
--- On Sat, 7/17/10, Henrique G. Abreu

Lara Michaels writes:
A graphical pager would also be a great way to solve both my problems. I am on Ubuntu and tried enabling the one that comes with the Gnome panel ("Workspace switcher"), but though everything works I can only see the shaded contours of the windows on the different workspaces... Is there a way to have it show either an icon or a miniaturized "preview" of what each window is displaying?
The gnome panel will show you icons if the windows are big enough, which can be acheived by either making your panel huge, or having only one window on the workspace. Neither of these solutions is any good. Another option for the gnome panel is the "window selector", which is a dropdown menu that lists your windows and workspaces. It's not as good "at a glance", but it's handy if you don't mind using the mouse.

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 7/18/10 10:23 , Lara Michaels wrote:
Unfortunately "pager" is one of the most difficult words to google for, since it assumes that I mean "page". : )
"+pager" works for me. You want hard, try a term with a symbol in it that hasn't been special-cased (see complaints shortly after Microsoft announced C# for an example) :) - -- brandon s. allbery [linux,solaris,freebsd,perl] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxDVZ8ACgkQIn7hlCsL25VNKwCgiO39pfwwVNILMjIeck88fbsr 7kwAnRC8FozCn48C0r7ZlV1KausQubtU =mUpT -----END PGP SIGNATURE-----
participants (7)
-
Anders Engström
-
Brandon S Allbery KF8NH
-
Etienne Millon
-
Henrique G. Abreu
-
Justin Bogner
-
Lara Michaels
-
Sergey Alirzaev