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