Re: [dwm] cycling through tags?

From: James Turner <james_AT_bsdgroup.org>
Date: Tue, 18 Nov 2008 19:35:17 -0500

On Tue, Nov 18, 2008 at 11:33:53PM +0100, Joerg van den Hoff wrote:
> hi,
>
> I want to be able to cycle through all tags using some key combination
> (instead of explicitely jumping to tag no. xxx).
>
> in 4.9 someone on this list helped me getting this right:
>
>
> void
> goto_nexttag(const char *arg) {
> unsigned int i, j;
>
> memcpy(prevtags, seltags, sizeof seltags);
> for (i = 0; i < LENGTH(tags); i++) {
> if (seltags[i])
> j = (i + 1) % LENGTH(tags);
> seltags[i] = False;
> }
> seltags[j] = True;
> arrange();
> }
>
>
> was the function needed. this obviously does not work any longer in 5.2.
> looking at the 5.2 source code I was not able to see immediately
> the neccessary modifications to make it work again.
>
> can somebody help me with this?
>
> thanks,
>
> joerg

Attached is a quick patch that will allow you to use meta + right/left
arrow key to cycle through your tags. It works here, but may not be the
best way to do it.

-- 
James Turner
BSD Group Consulting
http://www.bsdgroup.org

Received on Wed Nov 19 2008 - 00:35:17 UTC

This archive was generated by hypermail 2.2.0 : Wed Nov 19 2008 - 00:48:04 UTC