You are not logged in.
Im having trouble assigning a tag number in rc.lua to open office, does anyone know what name works for it? I know to get Firefox to appear on the desired tag I had to use the name "Gran Paradiso", otherwise awesome did not recognize it.
Thanks in advance.
Last edited by Kruppe (2009-01-08 16:39:44)
Offline
Searching for 'awesome openoffice' yielded:
Offline
Run xprop in a terminal and click the OO.o window. Then use the string from the variable WM_CLASS(string) = "something".
(lambda ())
Offline
Help your self with this to tag all your other applications:
alias xpop='xprop | grep --color=none "WM_WINDOW_ROLE\|WM_CLASS" | xmessage -file - -center'
You need to install an RTFM interface.
Offline
With the following in rc.lua:
keybinding({ modkey, "Ctrl" }, "i", function ()
local s = mouse.screen
if mypromptbox[s].text then
mypromptbox[s].text = nil
elseif client.focus then
mypromptbox[s].text = nil
if client.focus.class then
mypromptbox[s].text = "Class: " .. client.focus.class .. " "
end
if client.focus.instance then
mypromptbox[s].text = mypromptbox[s].text .. "Instance: ".. client.focus.instance .. " "
end
if client.focus.role then
mypromptbox[s].text = mypromptbox[s].text .. "Role: ".. client.focus.role
end
end
end):add()
(from the default rc.lua), it is enough to press ctrl + mod4 + 1 and you get the class in your awesome prompt box.
Mortuus in anima, curam gero cutis
Offline
skottish, thanks for the effort but thats not what I was looking for, to everyone else thanks very much thats exactly what I was looking for!
Offline
Just another thanks to everyone for this.
Also a note: i was having problems with a notification window that doesn't accept focus, and thus the rc.lua version doesn't work -- in this case, the xprop | xmessage version works a treat
Offline