awesome icon indicating copy to clipboard operation
awesome copied to clipboard

Expose the taglist/tasklist constructor arguments as properties

Open elyoas opened this issue 4 years ago • 2 comments

Output of awesome --version:

awesome v4.3 (Too long) • Compiled against Lua 5.3.6 (running with Lua 5.3) • D-Bus support: ✔ • execinfo support: ✔ • xcb-randr version: 1.6 • LGI version: 0.9.2

How to reproduce the issue:

This issue is taken from a stackoverflow question https://stackoverflow.com/questions/69626893/is-it-possible-to-make-tasklist-automatically-switch-to-different-layout/69637336#69637336

It is not currently possible to let a tasklist with a fixed layout wibox.layout.fixed.horizontal() switch to wibox.layout.flex.horizontal when the tasklist is full.

Actual result:

The only current way to do this is "ugly".

Expected result:

Unapplicable.

elyoas avatar Nov 12 '21 23:11 elyoas

I have the patches. I will make the PR "soon". That wont include the style properties, but wont monkey-patch the layout object anymore.

Elv13 avatar Nov 13 '21 00:11 Elv13

Here is the new doc https://elv13.github.io/widgets/awful.widget.tasklist.html

compared to the old one

https://awesomewm.org/apidoc/widgets/awful.widget.tasklist.html

As you can see, since this question was posted, I refactored the tasklist to no longer monkey patch the input layout. Rather, it is now a proper widget on its own. However, this is a breaking change, so I need to write a lot of tests to make sure I emulate enough of the old behavior so nobody notices.

I also added a ton of new documentation code example and images. I am halfway done doing the same for the taglist. This is mind crushingly boring...

Elv13 avatar Nov 13 '21 08:11 Elv13