]> git.rmz.io Git - dotfiles.git/blob - awesome/rules.lua
Makefile: add target for git
[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 raise = true,
25 keys = clientkeys,
26 buttons = clientbuttons,
27 screen = awful.screen.preferred,
28 placement = awful.placement.no_overlap+awful.placement.no_offscreen } },
29 { rule_any = {
30 class = {
31 "Sensation Editor",
32 "MPlayer",
33 "pinentry",
34 "mpv",
35 "gimp",
36 } },
37 properties = { floating = true } },
38 { rule = { class = "URxvt", instance = "pulsemixer" },
39 properties = { floating = true,
40 skip_taskbar = true,
41 ontop = true,
42 placement = awful.placement.top_right,
43 function (c)
44 s = awful.screen.focused()
45 c:connect_signal("unfocus", function (c) c:kill() end)
46 end } },
47 { rule = { class = "Wine"},
48 properties = { floating = true } },
49 { rule = { class = "URxvt"},
50 properties = { opacity = 0.8 } },
51 { rule = { class = "URxvt", instance = "mutt" },
52 properties = { tag = wwwtag,
53 function (c) awful.client.setslave(c) end } },
54 { rule = { class = "URxvt", instance = "ncmpcpp" },
55 properties = { tag = mediatag,
56 function (c) awful.client.setmaster(c) end } },
57 { rule = { class = "URxvt", instance = "mopidy" },
58 properties = { tag = mediatag,
59 function (c) awful.client.setmaster(c) end } },
60 { rule = { class = "URxvt", instance = "weechat" },
61 properties = { tag = imtag,
62 function (c) awful.client.setmaster(c) end } },
63 { rule = { class = "Steam" },
64 properties = { tag = tags[1][9] } },
65 }