Re: [dwm] Different window modes on different workspaces

From: Christian Garbs <>
Date: Tue, 18 Mar 2008 00:45:13 +0100

On Sat, Mar 15, 2008 at 07:28:49PM -0700, Jonny Gerold wrote:
> Godsend,
> I luv it... The only thing is that I would like all the workspaces
> displayed at the top instead of 1/2 etc... ie. (1 2 3...) But This is
> exactly what I was looking for, and I figure that it's just a patch that
> I need to remove or something? Or is this even possible?

Of course it's possible, this is computer science :-)

You should take a look at the workspace-patch. There you can make the
relevant changes - but don't change too much or the following
perworkspace-patch won't apply cleanly...

The workspaces are implemented with a dynamic amount of workspaces.
You can create and remove workspaces, which does not mix very well
with a static display of all workspaces in the status bar.

To get your desired behaviour, you should do the following:

 - set the initial number of workspaces to your liking
 - remove keybindings for creation and deletion of workspaces
 - revert the drawbar function to the old behaviour without the
   workspaces patch but beware that you don't have a tag array any
   more. If ordinal numbers as workspace names are ok, then this is
   easy to fix, just print the numbers when the boxes are drawn.
   If you really need text ("1 2 3 www irc"), you need to (re)create
   some sort of (tags)array and use it to fill the boxes.

That should kind of work.


PS: I won't include this into my patchset because I heavily rely on
    dynamic workspace creation (this is the dynamic window manager,
    after all :-) and managing two different codebases becomes quite a
    hassle when other patches get stacked on top...

Hubbard's Law:
        Don't take life too seriously; you won't get out of it alive.

Received on Tue Mar 18 2008 - 00:48:05 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:26:54 UTC