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 buttons = clientbuttons } },
26 { rule = { class = "mpv" },
27 properties = { floating = true } },
28 { rule = { class = "MPlayer" },
29 properties = { floating = true } },
30 { rule = { class = "pinentry" },
31 properties = { floating = true } },
32 { rule = { class = "gimp" },
33 properties = { floating = true } },
34 { rule = { class = "Kmix" },
35 properties = { floating = true,
38 x = 1920 - 310, y = mywibox[mouse.screen].height,
39 width = 100, height = 100 } },
40 { rule = { class = "URxvt", instance = "mutt" },
41 properties = { tag = wwwtag,
42 function (c) awful.client.setslave(c) end } },
43 { rule = { class = "Dwb", type = "normal", instance = "dwb-default" },
44 properties = { tag = wwwtag,
45 function (c) awful.client.setmaster(c) end } },
46 { rule = { class = "Dwb", type = "normal", instance = "dwb-social" },
47 properties = { tag = socialtag } },
48 { rule = { class = "URxvt", instance = "ncmpcpp" },
49 properties = { tag = mediatag,
50 function (c) awful.client.setmaster(c) end } },
51 { rule = { class = "URxvt", instance = "mopidy" },
52 properties = { tag = mediatag,
53 function (c) awful.client.setmaster(c) end } },
54 { rule = { class = "URxvt", instance = "weechat" },
55 properties = { tag = imtag,
56 function (c) awful.client.setmaster(c) end } },
57 { rule = { class = "Steam" },
58 properties = { tag = tags[1][9] } },