Add Pencil to the dynamically allocated programs
This commit is contained in:
parent
882ca4b99d
commit
cd55a123e0
1 changed files with 3 additions and 2 deletions
|
@ -510,6 +510,7 @@ end
|
|||
-- }}}
|
||||
|
||||
-- {{{ Signals
|
||||
imp_classes = { "Dia", "Firefox", "Pencil" }
|
||||
-- Signal function to execute when a new client appears.
|
||||
client.connect_signal("manage", function (c, startup)
|
||||
if not startup then
|
||||
|
@ -519,7 +520,7 @@ client.connect_signal("manage", function (c, startup)
|
|||
awful.client.setslave(c)
|
||||
end
|
||||
|
||||
if awful.rules.match_any(c, { class = { "Dia", "Firefox" } }) then
|
||||
if awful.rules.match_any(c, { class = imp_classes }) then
|
||||
tags[c.class] = tags[c.class] or
|
||||
awful.tag.add(c.class, {layout = awful.layout.suit.tile})
|
||||
awful.tag.viewonly(tags[c.class])
|
||||
|
@ -539,7 +540,7 @@ client.connect_signal("manage", function (c, startup)
|
|||
end)
|
||||
|
||||
client.connect_signal("unmanage", function(c)
|
||||
if awful.rules.match_any(c, { class = { "Dia", "Firefox" } }) then
|
||||
if awful.rules.match_any(c, { class = imp_classes }) then
|
||||
if tags[c.class] and #tags[c.class]:clients() == 0 then
|
||||
awful.tag.delete(tags[c.class])
|
||||
tags[c.class] = nil
|
||||
|
|
Loading…
Reference in a new issue