awesome-wm: binding programs to workspaces

5

2

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!

andrei

Posted 2011-10-08T01:00:00.613

Reputation: 121

Related : http://superuser.com/q/513707/162290

– Nikana Reklawyks – 2017-01-23T06:01:34.560

Answers

5

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.

milarepa

Posted 2011-10-08T01:00:00.613

Reputation: 269

2

I would recommend using Shifty:

Shifty is an Awesome 3 extension that implements dynamic tagging. It also implements a client matching configuration that simplifies tag-client matching. Here are a few ways of how shifty makes awesome awesomer:

  • On-the-fly tag creation and disposal
  • Advanced client matching
  • Easy moving of clients between tags
  • Tag add/rename prompt in taglist completion
  • Reordering tags and configurable positioning
  • Tag name guessing, automagic no-config client grouping
  • Customizable keybindings per client and tag
  • Simple yet powerful configuration

Udi

Posted 2011-10-08T01:00:00.613

Reputation: 212

I don't think Shifty is still a thing – Gunar Gessner – 2018-06-07T13:27:43.627

1

Instructions are located in Awesome FAQ 3.18 and 3.19.

lkraav

Posted 2011-10-08T01:00:00.613

Reputation: 1 049