You are not logged in.

#1 2009-03-11 21:41:53

heleos
Member
From: Maine, USA
Registered: 2007-04-24
Posts: 678

Awesome 'setslave' function

Back to awesome-svn for the moment (upgrade hasn't broken my config yet!)

I found the setslave function, but it applies to all tags. I'd like to only set it to certain tags (webbrowser and im tag). Is there a way to set that inside of the tag properties?

Offline

#2 2009-03-11 23:38:09

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 834
Website

Re: Awesome 'setslave' function

I assume then that you already have some kind of a table where you set names and other properties for your tags... you could then introduce "setslave = true" for a few tags. Then you could set a new tag property (awful.tag.setproperty) with the same name. Now, in your manage hook you can do a check if setslave is true for a tag (awful.tag.getproperty) and only then call awful.client.setslave.

Last edited by anrxc (2009-03-11 23:39:10)


You need to install an RTFM interface.

Offline

#3 2009-03-12 00:30:53

heleos
Member
From: Maine, USA
Registered: 2007-04-24
Posts: 678

Re: Awesome 'setslave' function

Great! Thanks for the idea. I'll see if my coding skills are still up to par later smile

Offline

Board footer

Powered by FluxBB