Re: View next/prev non-empty tag

2012-02-17 Thread Daniel
I would like to have a function for viewing the next and previous non-empty tag (modulo sticky clients I suppose, but I don't really have any of those). I tried to break out and modify the viewnext/viewidx functions from awful.tag, but I messed up. Hacking rc.lua usually goes well, but the

Re: View next/prev non-empty tag

2012-02-17 Thread Anurag Priyam
On Fri, Feb 17, 2012 at 2:33 PM, Daniel qu...@hack.org wrote:    local num_tags = #screen[s]:tags() local num_tags = #(screen[s]:tags()) Might help? Also you may have to use `capi.screen` instead. -- Anurag Priyam -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.

Re: View next/prev non-empty tag

2012-02-17 Thread Daniel
On 2012-02-17, Anurag Priyam anurag08pri...@gmail.com wrote:    local num_tags = #screen[s]:tags() local num_tags = #(screen[s]:tags()) Might help? Also you may have to use `capi.screen` instead. Tried both, but just get that same error from inside tag.lua. -- To unsubscribe, send

Re: View next/prev non-empty tag

2012-02-17 Thread Uli Schlachter
On 17.02.2012 10:03, Daniel wrote: I would like to have a function for viewing the next and previous non-empty tag (modulo sticky clients I suppose, but I don't really have any of those). I tried to break out and modify the viewnext/viewidx functions from awful.tag, but I messed up. Hacking

Re: View next/prev non-empty tag

2012-02-17 Thread Daniel
Urgh. I love inconsistencies. :-( Everything takes a screen number, but viewidx() wants a screen object. And with visible 0 it's a hit! Danke sehr -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.

View next/prev non-empty tag

2012-02-14 Thread Daniel
I would like to have a function for viewing the next and previous non-empty tag (modulo sticky clients I suppose, but I don't really have any of those). I tried to break out and modify the viewnext/viewidx functions from awful.tag, but I messed up. Hacking rc.lua usually goes well, but the capi is

Re: View next/prev non-empty tag

2012-02-14 Thread Uli Schlachter
On 14.02.2012 11:43, Daniel wrote: I would like to have a function for viewing the next and previous non-empty tag (modulo sticky clients I suppose, but I don't really have any of those). I tried to break out and modify the viewnext/viewidx functions from awful.tag, but I messed up. Hacking