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

Don Stewart dons00 at gmail.com
Sun May 8 20:47:13 CEST 2011


Uses this library:

    http://hackage.haskell.org/package/xosd

Add a hook to your config file to bind a key sequence to the workspace display.

On Sun, May 8, 2011 at 11:46 AM, Don Stewart <dons00 at gmail.com> wrote:
> I wrote a little tool to do this, based on xosd a few years ago,
>
> http://www.haskell.org/pipermail/xmonad/2008-November/006702.html
>
> you might adapt that.
>
> -- Don
>
> On Sun, May 8, 2011 at 8:42 AM, Lara Michaels
> <laramichaels1978 at yahoo.com> wrote:
>> 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