Emmanuel Lepage Vallee
8f71ef6dff
doc: Document the tasklist widget.
2022-08-29 22:48:35 -07:00
Emmanuel Lepage Vallee
c7ed176586
tasklist: Fix `disable_icon`.
...
It regressed when the tasklist switched to a template by default.
This was done to support the icon size.
Fix #3178
2022-08-29 22:47:55 -07:00
Emmanuel Lepage Vallee
b8dbba34db
taglist/tasklist: Fix the fallback font.
...
When beautiful.font isn't set, it fell back to "". That value isn't
actually the same as the "default" Pango font. Better use `nil`.
2022-08-29 22:47:55 -07:00
Emmanuel Lepage Vallee
396bddb946
layoutlist: Add a `count` property.
...
Because it was added to the `taglist` and `tasklist` and their API
somewhat mirror each other.
2022-08-29 22:47:55 -07:00
Emmanuel Lepage Vallee
798d31881d
taglist: Add a `count` property.
...
This is mostly for its signal handler. It will allow to replace the
template or layout based on the number of tags.
2022-08-29 22:47:55 -07:00
Emmanuel Lepage Vallee
b11a8fb52c
tasklist: Add a `count` property.
...
This is mostly for the signal handler. It will allow to do things
like replace the template or layout based on the number of clients.
2022-08-29 22:47:55 -07:00
Emmanuel Lepage Vallee
70c6821997
tasklist: Convert to a real widget.
...
Previously, it was monkey-patching the input layout object. This will
allow to replace the laoyut at runtime. For example, switching from
`fixed.horizontal` to a grid when the number of client gets too large.
2022-08-29 22:47:55 -07:00
Emmanuel Lepage Vallee
a3b7532056
taglist: Expose more properties.
...
They were passed in the constructor, but could not be changed.
2022-08-29 22:47:55 -07:00
Emmanuel Lepage Vallee
df59f5bdd3
taglist: Convert into a real widget.
...
It no longer monkey-patch the input layout widget. This allows the
layout to be replaced at runtime.
2022-08-29 22:47:55 -07:00
Emmanuel Lepage Vallee
2f3bce00e6
tasklist: Refactor to base a normal widget.
...
It was previously monkey-patching the input layout object into
the final tasklist.
This is a breaking change, but affects undocumented behaviors. By
doing this, it becomes possible to expose the properties in the
public API. This, in turn, allows to document them. Right now,
the documentation is very vague on some behaviors.
2022-08-29 22:47:55 -07:00
Emmanuel Lepage Vallee
1601c6890b
keygrabber: Document 5 deprecated, but still honored, method arguments.
...
As pointed out by @sclu1034, some users might actually pass the return
values of a function with multiple returns. This would cause some
confusing behavior. Documenting previous mistakes is in this case better
than hiding them.
2022-08-28 17:13:52 -07:00
Emmanuel Lepage Vallee
75019c3f6f
Implement fixes for Luacheck 0.26.1
...
* Rename or mute parameters starting with _
* Replace `not (>=)` with `<`
2022-08-28 16:59:14 -07:00
Kamack38
05a405b38b
feat(hotkeys: widget): add 3 new labels for keyboard keys ( #3668 )
...
Signed-off-by: kamack38 <64226248+kamack38@users.noreply.github.com>
2022-08-18 21:22:16 +02:00
Matthias Paulmier
b7bac1dc76
awful.widget.prompt: Properly take into account `with_shell` arg ( #3659 )
2022-07-12 08:53:34 -07:00
Actionless Loveless
9ca7bb487a
style(beautiful: gtk; hotkeys_popup): make new luacheck a bit happier ( #3651 )
2022-06-30 08:32:45 -07:00
A.I
c3c41bed2f
pass tag icon directly to imagebox
...
so that svg icons can be rendered with rsvg
2022-06-17 23:17:50 +08:00
Grumph
3a542219f3
Fix awful.keygrabber:add_keybinding function ( #3568 )
...
* Check the correct variable
* Fix table access
In every other use of _private.keybindings in this file, the key is a
string, not an awful.key
* Simplify code
key.key is always defined
* Add tests
* add(spec) add_keybinding unit test
* Revert "Add tests"
This reverts commit 808b17cd5c
.
Co-authored-by: Aire-One <aireone@aireone.xyz>
2022-05-29 13:10:29 -07:00
Emmanuel Lepage Vallée
be69e347fa
Merge pull request #3591 from actionless/spawn-doc-spaces
...
doc(awful: spawn): fix spaces
2022-05-29 12:45:09 -07:00
Lucas Schwiderski
51c184fc06
refactor(naughty.notification): Align table values
2022-05-29 10:52:20 +02:00
Lucas Schwiderski
62f13d3e08
fix(naughty.notification): Fix missing accessor
...
Fixes #3623 .
2022-05-29 10:52:11 +02:00
Actionless Loveless
c539e0e435
hotkeys_popup: expose labels and remove unused backspace translation ( #3585 )
...
the actual key is BackSpace, not Backspace, so this translation was always unused
Co-authored-by: Lucas Schwiderski <4508454+sclu1034@users.noreply.github.com>
2022-03-21 18:09:49 +01:00
actionless
1d228a13ab
doc(awful: spawn): proper quotes for an arg name
2022-03-20 18:57:12 +01:00
actionless
3d94bf0738
doc(awful: spawn): fix spaces
2022-03-20 18:57:12 +01:00
sarubo
9895aeb0d5
fix(placement) bad argument to 'field' ( #3572 )
...
RectangleInt must use integer
Remove float from RectangleInt
2022-02-25 19:34:51 +01:00
Aire-One
e260696826
Merge pull request #3564 from pepijnKrijnsen/parse_color
...
Update documentation for gears.color.parse_color(col) method
2022-02-14 19:25:01 +01:00
Pepijn Krijnsen
fd22d51207
Correct width and height documentation
...
The constraint:set_width function listed ‘height’ as a required parameter; the constraint:set_height function listed ‘width’ as a required parameter. Swapped those around.
2022-02-12 21:10:42 +00:00
Pepijn Krijnsen
53b70b4585
Update documentation for gears.color.parse_color(col) method
...
Lua comments now accurately describe the return values of this method.
Added a more comprehensive example, too. Issue #3555
2022-02-12 21:04:21 +00:00
SystematicError
86b6c49a0f
Fix typo ( #3562 )
...
Co-authored-by: SystematicError <systematicerror@users.noreply.github.com>
2022-02-07 11:08:08 -08:00
Actionless Loveless
2d6244f944
doc(progressbar): sanitize paddings/margins ( #3556 )
2022-02-03 13:25:05 +01:00
Xinhao Yuan
b49a53f6dd
Multi-row support of systray by taking a beautiful variable specifying the maximum number of rows to fill per column. ( #3520 )
...
Also, fix the fitting logic so that the result width and height are fitted in the available space. Previously the result dimensions can be larger than the input, but cropped in e7a21947e6/lib/wibox/widget/base.lua (L547)
. But still it can cause problems e.g. when used inside wibox.container.place.
2021-12-30 13:22:31 -08:00
Emmanuel Lepage Vallée
1413f0c4b9
Merge pull request #3513 from necauqua/fix-timer
...
Signalled error: bad argument #3 to 'timeout_add' (number has no integer representation)
2021-12-22 12:52:07 -08:00
Emmanuel Lepage Vallée
790e535017
Merge pull request #3529 from sclu1034/feature/docs
...
Various docs improvements
2021-12-22 12:05:43 -08:00
Grzegorz Bednarski
f353499230
Support minimized client property in tasklist icons ( #3526 )
2021-12-21 11:48:53 -08:00
Lucas Schwiderski
e55d1d41f3
docs(g.timer): Fix typo
2021-12-21 10:46:43 +01:00
Lucas Schwiderski
b343cb8111
docs(g.timer): Improve wording
2021-12-21 09:09:09 +01:00
Lucas Schwiderski
869e63fcdc
doc(w.w.textbox): Make alignment property descriptions consistent
...
Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
2021-12-14 19:09:42 +01:00
HumblePresent
030073fee7
Apply presets before registering notification
2021-11-26 13:22:58 -06:00
Anton Bulakh
71d08ab6ec
Use gmath.round
2021-11-23 08:45:52 +02:00
Anton Bulakh
e963d37cc4
Fix widget repaint printed errors
2021-11-22 12:39:16 +02:00
Anton Bulakh
e64446082b
Fix timer errors
2021-11-22 12:24:20 +02:00
sarubo
8d61790be7
doc: Add the markup example of popup_calendar
...
Refer to tests/examples/awful/widget/calendar_popup/default.lua
2021-11-21 23:49:46 +09:00
sarubo
03e437e32a
calendar_popup: Fix markup not working
2021-11-21 23:42:00 +09:00
Emmanuel Lepage Vallée
062ecfb6f0
Merge pull request #3490 from Elv13/less_flacky_tests
...
Less flacky tests
2021-11-13 00:42:18 -08:00
Emmanuel Lepage Vallée
2eb035e125
Merge pull request #3493 from Elv13/progressbar_doc
...
Improve the progressbar doc with more examples.
2021-11-03 12:40:56 -07:00
Emmanuel Lepage Vallee
76704b33e7
progressbar: Make `ticks` and `bar_shape` compatible with each other.
...
It looked horrible/buggy when combined. Now it looks like people would
expect it to work. Another problem was the `bar_border_width` look
when `ticks` was `true.
2021-11-02 20:36:07 -07:00
Emmanuel Lepage Vallee
0afb719f82
doc: Improve the progressbar doc.
...
Another commit in the "lets finish the widget doc" serie.
2021-11-02 20:36:07 -07:00
Emmanuel Lepage Vallee
9dcfde32e0
naughty: Never hold a strong reference to the notification in the box.
...
luajit was failing to GC the notification about 5% of the time. This
commit stores all widget notifications in a weak table and don't let
any lambda access the parent object notification object.
Each of those changes reduces the failure rate. There might still be
a couple in there, but the test passed 200x on my laptop with 100%
success rate.
2021-10-31 19:30:17 -07:00
Emmanuel Lepage Vallee
1fa0204d80
doc: Add many textbox examples.
2021-10-30 22:51:40 -07:00
Emmanuel Lepage Vallee
4df1cd6315
background: Correctly apply the matrix in the fallback border code.
2021-10-30 22:43:46 -07:00
Emmanuel Lepage Vallée
50b9b10437
texrbox: Fix a recent regression. ( #3488 )
...
The intial font wasn't set.
2021-10-28 19:24:49 -07:00