You are not logged in.
for example: opening the tag 'chromium' will launch a new chromium client.
I only want a new client to launch if the tag is (1) currently empty and (2) not selected, but I can't seem to make a function that can test both these things.
Offline
I don't really get your (2) point. "Opening" a tag and "selecting" a tag is the same for me.
Here an example how to start a terminal when selecting an empty tag 8:
tags[1][8]:add_signal(
"property::selected",
function(tag)
if tag.selected and next(tag:clients())==nil then
awful.util.spawn(terminal)
end
end)Only problem with this: If you already have some tags selected and add the empty tag 8 to your selection, the spawned program gets tagged with every selected tag, not just tag 8. But that's just a minor thing and easily avoided.
Offline