1 local utils = require("utils")
4 local sc = screen.count()
6 if sc == 1 then mediatag = tags[1][9] end
7 if sc == 2 then mediatag = tags[2][3] end
9 if sc == 1 then wwwtag = tags[1][2] end
10 if sc == 2 then wwwtag = tags[2][1] end
12 if sc == 1 then imtag = tags[1][3] end
13 if sc == 2 then imtag = tags[2][2] end
15 if sc == 1 then socialtag = tags[1][4] end
16 if sc == 2 then socialtag = tags[2][4] end
19 -- All clients will match this rule.
21 properties = { border_width = beautiful.border_width,
22 border_color = beautiful.border_normal,
23 focus = awful.client.focus.filter,
26 buttons = clientbuttons,
27 screen = awful.screen.preferred,
28 placement = awful.placement.no_overlap+awful.placement.no_offscreen } },
37 properties = { floating = true } },
38 { rule = { class = "URxvt", instance = "pulsemixer" },
39 properties = { floating = true,
42 placement = awful.placement.top_right,
44 s = awful.screen.focused()
45 c:connect_signal("unfocus", function (c) c:kill() end)
47 { rule = { class = "URxvt"},
48 properties = { opacity = 0.8 } },
49 { rule = { class = "URxvt", instance = "mutt" },
50 properties = { tag = wwwtag,
51 function (c) awful.client.setslave(c) end } },
52 { rule = { class = "URxvt", instance = "ncmpcpp" },
53 properties = { tag = mediatag,
54 function (c) awful.client.setmaster(c) end } },
55 { rule = { class = "URxvt", instance = "mopidy" },
56 properties = { tag = mediatag,
57 function (c) awful.client.setmaster(c) end } },
58 { rule = { class = "URxvt", instance = "weechat" },
59 properties = { tag = imtag,
60 function (c) awful.client.setmaster(c) end } },
61 { rule = { class = "Steam" },
62 properties = { tag = tags[1][9] } },