Hi,
I have written a function to do exactly this, I'll just paste it below,
maybe you can make use of it or parts of it.
There is one little issue with this code and I have no fucking clue why:
I need a naughty.notify in there to make it work for whatever reason. I
haven't looked into that, but that might expose a bug? I don't know,
maybe you can paste your own function or tell if you encounter a similar
behavior.
Manuel
function clientViadmenu()
--get list of all clients by name to pipe into dmenu
clientlist = ""
for c in awful.client.iterate(function(c) return true end) do
clientlist = clientlist .. c.name .. "\n"
end
naughty.destroy(naughty.notify{text = ""}) --WTF!? Without this it
doesn't work, I have no fucking clue why
--select the wanted title
wanted = awful.util.pread("printf '" .. clientlist .. "' | dmenu -i -l
50"):gsub("\n", "")
--wanted = awful.util.pread("/home/jonas/.myprogs/dmenuselect " ..
clientlist )
-- get the (first) client that matches that title
for c in awful.client.iterate(function(c) return awful.rules.match(c, {
name = wanted }) end) do
if c.minimized then
c.minimized = false
end
awful.client.jumpto(c)
break
end
end
--
To unsubscribe, send mail to [email protected].