- 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 = { },
- properties = { border_width = beautiful.border_width,
- border_color = beautiful.border_normal,
- focus = true,
- floating = true,
- keys = clientkeys,
- buttons = clientbuttons } },
- { 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 } },
- { rule = { class = "Iceweasel" },
- properties = { tag = tags[1][9], switchtotag = false, floating = false } },
- { rule = { class = "Iceweasel", instance = "Dialog" },
- properties = { floating = true } },
- { rule = { class = "Jpilot" },
- properties = { tag = tags[1][8], switchtotag = false, floating = false } },
+ buttons = clientbuttons,
+ placement = awful.placement.no_overlap+awful.placement.no_offscreen
+ }
+ },
+
+ -- Floating clients.
+ { rule_any = {
+ instance = {
+ "DTA", -- Firefox addon DownThemAll.
+ "copyq", -- Includes session name in class.
+ },
+ class = {
+ "Arandr",
+ "Gpick",
+ "Kruler",
+ "MessageWin", -- kalarm.
+ "Sxiv",
+ "Wpa_gui",
+ "pinentry",
+ "veromix",
+ "xtightvncviewer"},
+
+ name = {
+ "Event Tester", -- xev.
+ },
+ role = {
+ "AlarmWindow", -- Thunderbird's calendar.
+ "pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
+ }
+ }, properties = { floating = true }},
+
+ -- Add titlebars to normal clients and dialogs
+ { rule_any = {type = { "normal", "dialog" }
+ }, properties = { titlebars_enabled = false }
+ },
+
+ -- Set Firefox to always map on the tag named "2" on screen 1.
+ -- { rule = { class = "Firefox" },
+ -- properties = { screen = 1, tag = "2" } },