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 = "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 = "Kmix" },
 
  35       properties = { floating = true,
 
  38                      x = 1920 - 310, y = mywibox[mouse.screen].height,
 
  39                      width = 100, height = 100 } },
 
  40     { rule = { class = "URxvt"},
 
  41       properties = { opacity = 0.8 } },
 
  42     { rule = { class = "URxvt", instance = "mutt" },
 
  43       properties = { tag = wwwtag,
 
  44                      function (c) awful.client.setslave(c) end } },
 
  45     { rule = { class = "Dwb", type = "normal", instance = "dwb-default" },
 
  46       properties = { tag = wwwtag,
 
  47                      function (c) awful.client.setmaster(c) end } },
 
  48     { rule = { class = "Dwb", type = "normal", instance = "dwb-social" },
 
  49       properties = { tag = socialtag } },
 
  50     { rule = { class = "URxvt", instance = "ncmpcpp" },
 
  51       properties = { tag = mediatag,
 
  52                      function (c) awful.client.setmaster(c) end } },
 
  53     { rule = { class = "URxvt", instance = "mopidy" },
 
  54       properties = { tag = mediatag,
 
  55                      function (c) awful.client.setmaster(c) end } },
 
  56     { rule = { class = "URxvt", instance = "weechat" },
 
  57       properties = { tag = imtag,
 
  58                      function (c) awful.client.setmaster(c) end } },
 
  59     { rule = { class = "Steam" },
 
  60       properties = { tag = tags[1][9] } },