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,
25 screen = awful.screen.preferred,
26 buttons = clientbuttons } },
27 { rule = { class = "Sensation Editor" },
28 properties = { floating = true } },
29 { rule = { class = "mpv" },
30 properties = { floating = true } },
31 { rule = { class = "MPlayer" },
32 properties = { floating = true } },
33 { rule = { class = "pinentry" },
34 properties = { floating = true } },
35 { rule = { class = "gimp" },
36 properties = { floating = true } },
37 { rule = { class = "URxvt", instance = "pulsemixer" },
38 properties = { floating = true,
42 c:geometry({ x = 1920 - 500, y = mywibox[mouse.screen].height,
43 width = 500, height = 300})
44 c:connect_signal("unfocus", function (c) c:kill() end)
46 { rule = { class = "URxvt"},
47 properties = { opacity = 0.8 } },
48 { rule = { class = "URxvt", instance = "mutt" },
49 properties = { tag = wwwtag,
50 function (c) awful.client.setslave(c) end } },
51 { rule = { class = "Dwb", type = "normal", instance = "dwb-default" },
52 properties = { tag = wwwtag,
53 function (c) awful.client.setmaster(c) end } },
54 { rule = { class = "Dwb", type = "normal", instance = "dwb-social" },
55 properties = { tag = socialtag } },
56 { rule = { class = "URxvt", instance = "ncmpcpp" },
57 properties = { tag = mediatag,
58 function (c) awful.client.setmaster(c) end } },
59 { rule = { class = "URxvt", instance = "mopidy" },
60 properties = { tag = mediatag,
61 function (c) awful.client.setmaster(c) end } },
62 { rule = { class = "URxvt", instance = "weechat" },
63 properties = { tag = imtag,
64 function (c) awful.client.setmaster(c) end } },
65 { rule = { class = "Steam" },
66 properties = { tag = tags[1][9] } },