Re: [dwm] Different window modes on different worktabs

From: Christian Garbs <mitch_AT_cgarbs.de>
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 worktabs
> 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 pull request that
> I need to remove or something? Or is this even possible?

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

You should take a look at the worktab-pull request. There you can make the
relevant changes - but don't change too much or the following
perworktab-pull request won't apply cleanly...

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

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

 - set the initial number of worktabs to your liking
 - remove keybindings for creation and deletion of worktabs
 - revert the drawbar function to the old behaviour without the
   worktabs pull request but beware that you don't have a tag array any
   more. If ordinal numbers as worktab 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.

Regards,
Christian

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

-- 
....Christian.Garbs.....................................http://www.cgarbs.de
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