-- }}}
-- {{{ Rules
-awful.rules.rules = {
- -- All clients will match this rule.
- { rule = { },
- properties = { border_width = beautiful.border_width,
- border_color = beautiful.border_normal,
- focus = true,
- keys = clientkeys,
- buttons = clientbuttons } },
- { rule = { class = "MPlayer" },
- properties = { floating = true } },
- { rule = { class = "pinentry" },
- properties = { floating = true } },
- { rule = { class = "gimp" },
- properties = { floating = true } },
- { rule = { class = "twinkle" },
- properties = { floating = true } },
- { rule = { class = "Play stream" },
- properties = { floating = true } },
- { rule = { class = "gscan2pdf" },
- properties = { floating = true } },
- { rule = { class = "Gxmessage" },
- properties = { floating = true } },
- { rule = { class = "Add-ons" },
- properties = { floating = true } },
- { rule = { class = "Okular" },
- properties = { maximised = true } },
- { rule = { class = "Iceweasel" },
- properties = { tag = tags[1][9], switchtotag = false } },
- { rule = { class = "Iceweasel", role = "Dialog" },
- properties = { floating = true } },
- { rule = { class = "Jpilot" },
- properties = { tag = screen.count()>1 and tags[3][2] or tags[1][8], switchtotag = false } },
-}
awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
{ rule = { class = "URxvt" },
properties = { floating = false } },
{ rule = { class = "URxvt", instance = "irc" },
- properties = { tag = screen.count()>1 and tags[3][1] or tags[1][4], switchtotag = true, floating = false } },
- { rule = { class = "Okular" },
- properties = { tag = tags[1][7], switchtotag = true, floating = false } },
- { rule = { class = "Evince" },
- properties = { tag = tags[1][7], switchtotag = true, floating = false } },
- { rule = { class = "OpenOffice.org 3.1" },
- properties = { tag = tags[1][7], switchtotag = true, floating = false } },
- { rule = { class = "Vinagre" },
- properties = { tag = tags[1][6], switchtotag = false, floating = false } },
+ properties = { floating = false, tag = tags[screen.count()][screen.count() == 1 and 2 or 1], switchtotag = true } },
{ rule = { class = "Iceweasel" },
- properties = { tag = tags[1][9], switchtotag = false, floating = false } },
+ properties = { tag = tags[screen.count() == 3 and 1 or screen.count()][9], switchtotag = false, floating = false } },
{ rule = { class = "Iceweasel", instance = "Dialog" },
- properties = { floating = true } },
+ properties = { floating = true }, callback = awful.placement.centered },
{ rule = { class = "Jpilot" },
- properties = { tag = tags[1][8], switchtotag = false, floating = false } },
+ properties = { tag = tags[screen.count() == 3 and 1 or screen.count()][8], switchtotag = true, floating = false } },
}
-- }}}