[xmonad] DynamicWorkspaces: New WS not accessible with mod+number

wagnerdm at seas.upenn.edu wagnerdm at seas.upenn.edu
Fri Jan 15 13:35:36 EST 2010


Try something like

map (\n -> ("M-" ++ show (n+1), withNthWorkspace W.greedyView n)) [0..8]

~d

Quoting Ralph Hofmann <hofmann2004 at arcor.de>:

> No, I haven't. Because I didn't understand the code;-).
>
> Okay, but how to enter it into xmonad.hs? Because in order to modify my
> keys I use additionalKeysP from XMonad.Util.EZConfig, which uses strings
> instead of a pairs as representation for key combinations.
>
> So the line from the documentation needs to be modified:
>
> zip (zip (repeat (modm)) [xK_1..xK_9]) (map (withNthWorkspace
> W.greedyView) [0..])
>
> I came to something like:
>
> zip (??? (repeat ("M-")) ["1".."9"]) (map (withNthWorkspace
> W.greedyView) [0..])
>
> If ??? takes two lists of strings an returns a list of pairwise
> concatenated strings,it should work. At least I hope so.
>
> How to do that? Obviously a no brainer for a haskell programmer, which
> is, what I am not.
>
> Ralph
>
>
> Am Freitag, den 15.01.2010, 10:03 -0500 schrieb wagnerdm at seas.upenn.edu:
>> Have you switched your mod+1 - mod+9 keys to use "withNthWorkspace" as
>> in the documentation?
>> http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Actions-DynamicWorkspaces.html#1
>> ~d
>>
>> Quoting Ralph Hofmann <hofmann2004 at arcor.de>:
>>
>> > After playing around a little bit more:
>> >
>> > It has nothing to do with virtualbox.
>> >
>> > I have started a new session after a reboot. I started with four
>> > workspaces 1-4. Before doing anything else, I added a new workspace 5.
>> > This workspace can't be accessed with mod+5. However if I remove one of
>> > the four workspaces and recreate it, mod+number works correctly.
>> >
>> > "mod+number" seems to be limited by the number of workspaces, with is
>> > set as default in xmonad.hs. I don't think, this is on purpose.
>> >
>> >
>> > Ralph
>> >
>> >
>> > Am Donnerstag, den 14.01.2010, 20:07 +0100 schrieb Ralph Hofmann:
>> >> I prefer using only few workspaces by default and adding one if needed,
>> >> whether by adding a workspace with addWorkspace and rename it or, more
>> >> easily, by using selectWorkspace and entering a number that doesn't
>> >> exist. In both cases, i can't access the new workspace by "mod + number
>> >> of workspace".
>> >>
>> >> Is there a workaround?
>> >>
>> >> My xmonad has version 0.9-1.
>> >>
>> >> Ralph
>> >>
>> >> _______________________________________________
>> >> xmonad mailing list
>> >> xmonad at haskell.org
>> >> http://www.haskell.org/mailman/listinfo/xmonad
>> >
>> >
>> > _______________________________________________
>> > xmonad mailing list
>> > xmonad at haskell.org
>> > http://www.haskell.org/mailman/listinfo/xmonad
>> >
>> >
>>
>>
>> _______________________________________________
>> xmonad mailing list
>> xmonad at haskell.org
>> http://www.haskell.org/mailman/listinfo/xmonad
>
>
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://www.haskell.org/mailman/listinfo/xmonad
>
>




More information about the xmonad mailing list