]> git.rmz.io Git - dotfiles.git/blob - awesome/rules.lua
Other changes at cadscan (with the ones I want to keep stripped)
[dotfiles.git] / awesome / rules.lua
1 local utils = require("utils")
2
3 -- {{{ Rules
4 local sc = screen.count()
5
6 if sc == 1 then mediatag = tags[1][9] end
7 if sc == 2 then mediatag = tags[2][3] end
8
9 if sc == 1 then wwwtag = tags[1][2] end
10 if sc == 2 then wwwtag = tags[2][1] end
11
12 if sc == 1 then imtag = tags[1][3] end
13 if sc == 2 then imtag = tags[2][2] end
14
15 if sc == 1 then socialtag = tags[1][4] end
16 if sc == 2 then socialtag = tags[2][4] end
17
18 awful.rules.rules = {
19 -- All clients will match this rule.
20 { rule = { },
21 properties = { border_width = beautiful.border_width,
22 border_color = beautiful.border_normal,
23 focus = awful.client.focus.filter,
24 keys = clientkeys,
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 = "URxvt", instance = "pulsemixer" },
35 properties = { floating = true,
36 skip_taskbar = true,
37 ontop = true,
38 function (c)
39 c:geometry({ x = 1920 - 500, y = mywibox[mouse.screen].height,
40 width = 500, height = 300})
41 c:connect_signal("unfocus", function (c) c:kill() end)
42 end } },
43 { rule = { class = "URxvt"},
44 properties = { opacity = 0.8 } },
45 { rule = { class = "URxvt", instance = "mutt" },
46 properties = { tag = wwwtag,
47 function (c) awful.client.setslave(c) end } },
48 { rule = { class = "Dwb", type = "normal", instance = "dwb-default" },
49 properties = { tag = wwwtag,
50 function (c) awful.client.setmaster(c) end } },
51 { rule = { class = "Dwb", type = "normal", instance = "dwb-social" },
52 properties = { tag = socialtag } },
53 { rule = { class = "URxvt", instance = "ncmpcpp" },
54 properties = { tag = mediatag,
55 function (c) awful.client.setmaster(c) end } },
56 { rule = { class = "URxvt", instance = "mopidy" },
57 properties = { tag = mediatag,
58 function (c) awful.client.setmaster(c) end } },
59 { rule = { class = "URxvt", instance = "weechat" },
60 properties = { tag = imtag,
61 function (c) awful.client.setmaster(c) end } },
62 { rule = { class = "Steam" },
63 properties = { tag = tags[1][9] } },
64 }