X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/697eac03898072945d8b9d26d39f124e65921f54..fb98224e52ac46e19d2c65cc93b1ada92fae8c54:/.config/awesome/rc.lua diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index cd7b300..1b82fb9 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -175,7 +175,8 @@ mytasklist = {} mytasklist.buttons = awful.util.table.join( awful.button({ }, 1, function (c) if c == client.focus then - c.minimized = true + -- I don't like click-minimising + -- c.minimized = true else -- Without this, the following -- :isvisible() makes no sense @@ -581,13 +582,16 @@ awful.rules.rules = { }, callback = move_to_tag(screen.count() == 1 and 1 or 2, 8) }, - { rule = { class = "chromium", instance = "chromium" }, + { rule = { class = "Chromium", instance = "chromium" }, properties = { floating = false, }, callback = move_to_tag(screen.count() == 1 and 1 or 2, 9) }, { rule = { class = "Gscan2pdf" }, + properties = { + switchtotag = true + }, callback = move_to_tag(1, 5) }, { rule = { name = "gscan2pdf .*" }, @@ -671,6 +675,8 @@ end) client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end) client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end) -awful.ewmh.add_activate_filter(function(c) if c.class == "Firefox" then return false end end) +awful.ewmh.add_activate_filter(function(c, context, hints) + if context == "ewmh" and c.class == "Firefox" then return false end +end) -- vim:ft=lua:sw=4:sts=4:ts=4:et