You are not logged in.

#1 2008-06-07 19:22:33

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

awesome 'awful.client.movetotag' function

I'm wondering if anyone has a way around this. Setting up hotkeys to open things like thunar, i have:

    if name:lower():find("thunar") then
            awful.client.movetotag(tags[screen][1])
    end

but when thunar starts, the title is actually 'username - File Manager'. That isn't a problem, I can make another action that searches my username, and puts it in the tag I want. The problem is trying to get pidgin windows to do the same. When pidgin opens, it has the name of the user sending the messege. I don't want to have to write a separate case for each user on my list tongue

I was wondering if there's a better way?

Offline

#2 2008-06-07 20:24:08

GGLucas
Member
Registered: 2008-03-13
Posts: 113

Re: awesome 'awful.client.movetotag' function

If you're using a recent awesome commit, client:class_get() was added a bit back, you could use that to check for the WM_CLASS instead of the window title.

Last edited by GGLucas (2008-06-07 20:24:34)

Offline

#3 2008-06-07 21:53:32

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

Re: awesome 'awful.client.movetotag' function

You always seem to save me lucas smile

Offline

Board footer

Powered by FluxBB