summaryrefslogtreecommitdiffstats
path: root/awesome
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-02-26 09:40:21 +0100
committerGravatar Tom Willemse2015-02-26 09:40:21 +0100
commitcd55a123e07f220876ccdb94aa0c19f1c20b2966 (patch)
tree2b22ddeb2db55d77b648a33e0b59c63d91338d97 /awesome
parent882ca4b99d64ad1dc092ac0e68bf4d68ed8d8e19 (diff)
downloaddotfiles-cd55a123e07f220876ccdb94aa0c19f1c20b2966.tar.gz
dotfiles-cd55a123e07f220876ccdb94aa0c19f1c20b2966.zip
Add Pencil to the dynamically allocated programs
Diffstat (limited to 'awesome')
-rw-r--r--awesome/.config/awesome/rc.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua
index ef32e14..6caad46 100644
--- a/awesome/.config/awesome/rc.lua
+++ b/awesome/.config/awesome/rc.lua
@@ -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