]> git.rmz.io Git - dotfiles.git/blob - awesome/rules.lua
nvim: add FPP copyright snippet
[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 "MPlayer",
32 "pinentry",
33 "gimp",
34 },
35 instance = {
36 "qemu",
37 } },
38 properties = { floating = true } },
39 { rule = { class = "mpv" },
40 properties = { border_width = 0,
41 floating = true }},
42 { rule = { class = terminal_class, instance = "pulsemixer" },
43 properties = { floating = true,
44 skip_taskbar = true,
45 ontop = true,
46 placement = awful.placement.top_right,
47 function (c)
48 s = awful.screen.focused()
49 c:connect_signal("unfocus", function (c) c:kill() end)
50 end } },
51 { rule = { class = "Wine"},
52 properties = { floating = true } },
53 { rule = { class = terminal_class },
54 properties = { opacity = 0.95 } },
55 { rule_any = { class = { "Steam", "steam" } },
56 properties = { tag = tags[1][9] } },
57 }