I would like to have my awesome WM to add items to the tasklist the same way as other window managers. Basically when you open applications in awesome it will put it in the tasklist preceding the previous application.

For example, if you open xterm, gvim and firefox in that order, on the tasklist will appear first firefox, then gvim and finally xterm.

The mayority of window managers like Gnome and KDE will add items in the same order as they are open.

Is it possible to achieve this behaviour in AWESOME?

Thank you.

有帮助吗?

解决方案

I need to add rule:

{ rule = { }, properties = { }, callback = awful.client.setslave }

其他提示

You need to change the handler function tasklist_update in this file:

~/.config/awesome/awful/widget/tasklist.lua

Find table.insert(clients, c) and replace it with table.insert(clients, 1, c).

Faiver's solution solve the problem. However tasklist.lua won't show up in ~/.config/awesome dir by default.

At least in recent awesome package, this file will appear in /usr/share/awesome/lib/awful/widget/tasklist.lua. You may copy it to you ~/.config/awesome/awful/widget/ dir.

You may look it up: https://apps.fedoraproject.org/packages/awesome/ & http://packages.ubuntu.com/trusty/amd64/awesome/filelist

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top