Awesome-wm: binding programs to workspaces

awesome-wm

Could you please suggest some simple method of binding certain programs/windows to their own workspaces? E. g. firefox is always to be started on workspace 1, chromium – workspace 2, terminal – workspace 3 etc.

Thank you!

Best Answer

You can use Awesome native rules:

awful.rules.rules = {
  { rule = { class = "Firefox" },
  properties = { tag = tags[1][1] , switchtotag=true } },
  { rule = { class = "Chromium" },
  properties = { tag = tags[1][2] , switchtotag=true } },
  { rule = { class = "Terminal" },
  properties = { tag = tags[1][3] , switchtotag=true } },
}

You can confirm class names with wmctrl -lx.

Related Question