]> git.rmz.io Git - dotfiles.git/blob - awesome/rules.lua
fix rule for chronos
[dotfiles.git] / awesome / rules.lua
1 local utils = require("utils")
2
3 -- {{{ Rules
4 if utils.host == "shada" then mediatag = tags[2][3] end
5 if utils.host == "chronos" then mediatag = tags[1][4] end
6
7 if utils.host == "shada" then wwwtag = tags[2][1] end
8 if utils.host == "chronos" then wwwtag = tags[1][2] end
9
10 if utils.host == "shada" then imtag = tags[2][2] end
11 if utils.host == "chronos" then imtag = tags[1][3] end
12
13 if utils.host == "shada" then socialtag = tags[2][4] end
14 if utils.host == "chronos" then socialtag = tags[1][5] end
15
16 awful.rules.rules = {
17 -- All clients will match this rule.
18 { rule = { },
19 properties = { border_width = beautiful.border_width,
20 border_color = beautiful.border_normal,
21 focus = awful.client.focus.filter,
22 keys = clientkeys,
23 buttons = clientbuttons } },
24 { rule = { class = "mpv" },
25 properties = { floating = true } },
26 { rule = { class = "MPlayer" },
27 properties = { floating = true } },
28 { rule = { class = "pinentry" },
29 properties = { floating = true } },
30 { rule = { class = "gimp" },
31 properties = { floating = true } },
32 { rule = { class = "Kmix" },
33 properties = { floating = true,
34 skip_taskbar = true,
35 ontop = true,
36 x = 1920 - 310, y = mywibox[mouse.screen].height,
37 height = 100, width = 100 } },
38 { rule = { class = "Clementine" },
39 properties = { tag = mediatag,
40 switchtotag = true } },
41 { rule = { class = "Dwb", type = "normal", instance = "dwb" },
42 properties = { tag = wwwtag } },
43 { rule = { class = "Dwb", type = "normal", instance = "dwb-social" },
44 properties = { tag = socialtag } },
45 { rule = { class = "Qupzilla" },
46 properties = { tag = wwwtag } },
47 { rule = { class = "Qupzilla", name = "Detached ViewTube - QupZilla" },
48 properties = { floating = true } },
49 { rule = { class = "Quassel" },
50 properties = { tag = imtag,
51 function (c) awful.client.setmaster(c) end } },
52 { rule = { class = "Kopete" },
53 properties = { tag = imtag,
54 function (c) awful.client.setslave(c) end } },
55 }
56 -- }}}