[xmonad] is it possible to display workspace number on the corresponding screen?

wagnerdm at seas.upenn.edu wagnerdm at seas.upenn.edu
Mon May 9 03:23:07 CEST 2011

I recommend setting up xmobar and using XMonad.Hooks.DynamicLog. It  
should do pretty much exactly what you want out of the box.


Quoting Lara Michaels <laramichaels1978 at yahoo.com>:

> Hi everyone,
> I just moved to a three-screen setup at work and am suffering from a  
> curious problem: I cannot remember which workspace is being  
> displayed on each of the screens! That makes it pretty  
> time-consuming to switch one screen from its current workspace to a  
> different one.
> With the earlier help of list members, I am using showWMName:
> import XMonad.Layout.ShowWName
> myLayout = layoutHook gnomeConfig -- part of displaying current  
> workspace name using Xmonad.Layout.ShowWName
> main = xmonad $ ewmh gnomeConfig {
>         manageHook = manageHook gnomeConfig <+> composeAll myManageHook,
>         workspaces = myWorkspaces,
>         modMask = mod4Mask, -- makes all xmonad shortcuts be  
> "Windows key + X" (thus not interfering with any app's)
>         borderWidth        = 3,
>         normalBorderColor  = "#cccccc",
>         focusedBorderColor = "#cd8b00",
>         layoutHook = showWName myLayout
>         }
>         `additionalKeysP` myKeys
> This gets me a small useful indication of which workspace I am  
> moving to *when I switch from one to the other*.
> Similarly, is it possible to permanently display in a corner (e.g.,  
> in the bottom-left corner) of each screen the number of the  
> workspace that is being displayed on that screen? Or perhaps have  
> the option of showing this same information in the center of each  
> screen by pressing a hot key?
> With multihead setups (where I think xmonad really shines), it is  
> quite confusing not know which workspace you are looking at on each  
> screen... I only wish I understood Haskell so that I could implement  
> something like this. If this is a small hack that can be  
> accomplished with three lines of code, please tell me how to do it! :)
> all the best and my thanks for any help
> ~lara
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://www.haskell.org/mailman/listinfo/xmonad

More information about the xmonad mailing list