Emmanuel Lepage Vallée
73e908ed95
Apply suggestions from code review
...
Co-authored-by: Lucas Schwiderski <4508454+sclu1034@users.noreply.github.com>
2021-09-12 01:59:48 -07:00
Emmanuel Lepage Vallée
6ad693eff0
Apply suggestions from code review
...
Co-authored-by: Aire-One <Aire-One@users.noreply.github.com>
2021-09-12 01:59:48 -07:00
Emmanuel Lepage Vallee
d5d74e44de
doc: Document the wibar module.
2021-09-12 01:59:48 -07:00
Emmanuel Lepage Vallee
b2368c54a8
tests: Fix the `screen` template rendering with multiple screens.
...
It only worked for a single screen. It still isn't perfect, but
much better than it was.
2021-09-12 01:59:48 -07:00
Emmanuel Lepage Vallee
dd6163ffe6
shims: Fix the screen workarea value.
...
It didn't work with multiple screens.
2021-09-12 01:59:48 -07:00
Emmanuel Lepage Vallee
a94a4beb6f
doc: Add a missing DOC_HIDE which damaged the rendering.
2021-09-12 01:59:48 -07:00
Emmanuel Lepage Vallee
b883855272
wibar: Allow to configure how conflicts between wibars are resolved.
...
Previously, the horizontal wibars would always get priority. Now,
this can be configured.
2021-09-12 01:59:48 -07:00
Emmanuel Lepage Vallee
529a6c2a8d
wibar: Expose update_workarea.
...
It is now possible to create wibars which are not changing the
tiled area.
2021-09-12 01:59:48 -07:00
Emmanuel Lepage Vallee
0828c20a55
rc.lua: Be consistent about how the wibar is created.
...
The syntax was a leftover from ancient time where the wibar
constructor could not forward the properties to the wibox and
when the wibox didn't take a `widget` argument.
I make this change mostly to be consistent with the documentation
examples.
2021-09-12 01:59:48 -07:00
Emmanuel Lepage Vallee
67dc363437
wibar: Modernize the module structure.
...
Move the burdensome legacy code into local function so the normal
`gears.table.crush` module setup can be used. This fixes a couple
monior issues where `args` would be ignored.
This also makes a minor change to the logic. Changing the position
always moves to wibar to the end of the stack. Previously, there
was a minor case where it would not. There was also the case when
setting the same position twice would move the wibar, which was a bug.
2021-09-12 01:59:48 -07:00
Emmanuel Lepage Vallee
dab767af3e
wibar: Restore the ability to align a wibar.
...
This was lost in 3.5->4.0 update, but still had some references in
the code and doc. At the time, the plan was to add it back
"shortly after" based on the `awful.placement` code, but it was
never merged.
2021-09-12 01:59:48 -07:00
Emmanuel Lepage Vallee
b62f343409
wibar: Add margins.
...
This is a feature request from Reddit. With this commit, the
awful.placement margins are exposed to the wibar API.
2021-09-12 01:59:48 -07:00
Emmanuel Lepage Vallee
ab977b2358
placement: Fix the struts size when margins are present.
...
Previously, it only added 1 of the 2 sides of the relevant margins
to the struct size. For example, if the position was "top", then
only the top margin was added, not the bottom one.
2021-09-12 01:59:48 -07:00
Emmanuel Lepage Vallee
b4afd0206b
tests: Make sure wibar resize works.
...
Also add some garbage collection tests. This was my original
theory about why resizing was broken, but it turned out something
in `awful.placement` leaked, not the wibar references.
2021-09-12 01:59:48 -07:00
Emmanuel Lepage Vallee
d9f27bdf4b
placement: Do not leak the composed placement "override" in the args.
...
Without this change, if a composed placement was used, it would leak
the "override_geometry" in the args, which would be kept cached during
the next composed node. If that node had no override of its own, it
would use the previous one by accident.
In practice, it means it was impossible to resize a `wibar` manually.
The `wibar` would always restore itself to the height (or width, for
vertical ones) it previously had.
2021-09-12 01:59:48 -07:00
Emmanuel Lepage Vallee
4b606fb3d7
notification: Fix rendering during early screen creation.
...
If the problem happens early enough, it was possible that the
screen arrway wasn't initialized yet. In that case, the notification
would fail to render.
2021-09-12 01:59:48 -07:00
Emmanuel Lepage Vallée
2a8c17daea
Merge pull request #3434 from sclu1034/test/github_actions
...
Fix GitHub Actions
2021-09-11 14:47:10 -07:00
Lucas Schwiderski
f39e8d261b
Fall back to GitHub's token for coveralls
...
Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
2021-09-11 14:03:11 +02:00
Lucas Schwiderski
86ec4888b3
Fix newline printing
...
Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
2021-09-11 13:49:47 +02:00
Lucas Schwiderski
cc882585de
Fix test for previous commits
...
Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
2021-09-11 13:47:48 +02:00
Emmanuel Lepage Vallée
ee3c42652e
Merge pull request #3292 from sclu1034/feature/github_actions
...
Migrate CI to GitHub Actions
2021-09-10 14:25:54 -07:00
mergify[bot]
7ae6d26363
Merge pull request #3387 from mattplm/master
...
Stop using fixed row number in calendars
2021-09-07 23:51:38 +00:00
mergify[bot]
c88dcf5405
Merge pull request #3409 from vicious-widgets/vicious-async
...
Remove Vicious as async counterexample
2021-09-07 21:25:04 +00:00
mattplm
97726e8f38
Stop using fixed row number
2021-08-28 23:10:40 +02:00
ViSaturn
13cd20780e
spelling & grammar issues ( #3410 )
...
replace request to requsts & replace futur to future
2021-08-14 23:38:01 -07:00
Nguyễn Gia Phong
be45b40cdb
Remove Vicious as async counterexample
...
Vicious has stopped using io.popen since October 2019.
2021-08-12 21:12:33 +07:00
aflorea-2k
8a81745d4d
doc(index.html): fixed broken links ( #3402 )
...
Fixes #3393 , where links to guides were hard-coded, and pointed to wrong
places in the git version.
2021-08-04 11:07:57 -07:00
aflorea-2k
260f6dbe97
doc(wibox.widget.textbox.html): fixed pango links ( #3401 )
...
Links to gnome's pango webpage
(https://developer.gnome.org/pango/stable/PangoMarkupFormat.html ) were
broken. They now all point to docs.gtk.org .
2021-08-03 20:02:25 +02:00
Emmanuel Lepage Vallée
4b494952da
Merge pull request #3400 from aflorea-2k/06-appearance.md_duplicates-fix
...
06 appearance.md duplicates fix (fixes #3328 )
2021-08-02 18:13:35 -07:00
mergify[bot]
fcd5918bd9
Merge pull request #3399 from sclu1034/feature/docs
...
Various doc improvements nr. 4
2021-08-03 01:12:11 +00:00
aflorea-2k
ddb88ed945
List of values in table renders as HTML list
...
Co-authored-by: Aire-One <Aire-One@users.noreply.github.com>
2021-08-02 14:48:50 +02:00
Andrei Florea
5f5b1dcb2b
Removed dupicate computation of values
2021-08-02 14:46:20 +02:00
Andrei Florea
b73b885c1e
06-appearance.md no longer mentions duplicates. ( fixes #3328 )
...
The table entries that were duplicated are now side by side.
There are no longer duplicates in the sample file.
2021-07-31 17:29:56 +02:00
Lucas Schwiderski
0a68341c12
doc(w.c.radialprogressbar): Show example code
...
Adds the code snippet for the example shown in the module description.
Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
2021-07-31 15:05:10 +02:00
Lucas Schwiderski
c689af64d5
doc(w.w.textbox): Improve ellipsize documentation
...
The list of possible values was missing one. Additionally, this adds an
example to visualize the available options.
Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
2021-07-31 15:05:09 +02:00
Lucas Schwiderski
05ca439ed5
doc(mousegrabber): Improve cursor list
...
Utilize screen space better with a flex list, compared to a
single-column table.
Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
2021-07-31 15:04:54 +02:00
Andrei Florea
66bb09718b
docs/_parser.lua: parse_files() doesn't produce duplicate entries
...
anymore.
TODO: Handle duplicate's links.
2021-07-31 11:42:38 +02:00
Lucas Schwiderski
8fab5aa703
doc(w.w.imagebox): Improve various bits
...
Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
2021-07-14 23:17:49 +02:00
Lucas Schwiderski
4096c19223
doc(w.l.flex): Add module description
...
Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
2021-07-14 23:00:31 +02:00
Lucas Schwiderski
f214ef16a7
doc(w.l.fixed): Improve docs for common layout methods
...
Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
2021-07-14 23:00:30 +02:00
Lucas Schwiderski
4b30158176
doc(w.l.fixed): Improve documentation for spacing properties
...
Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
2021-07-14 23:00:29 +02:00
Lucas Schwiderski
f2c66b006d
doc(w.l.fixed): Add module description
...
Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
2021-07-13 22:44:50 +02:00
Lucas Schwiderski
08c893fff9
refactor(w.l.fixed): Fix line length
...
Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
2021-07-13 22:33:32 +02:00
Lucas Schwiderski
a938a1b807
refactor(w.l.fixed): Rename abbreviated variables
...
Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
2021-07-13 22:30:52 +02:00
Lucas Schwiderski
c1a3f02c88
doc(w.l.align): Add module description
...
Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
2021-07-13 20:30:22 +02:00
mergify[bot]
832483dd60
Merge pull request #3362 from actionless/prompt-multibyte-hack
...
Fix the hack for multibyte characters in prompt (fixes #3308 )
2021-07-12 06:07:03 +00:00
basaran
f473639c5d
Update focus.lua ( #3381 )
...
missing stacked option for global_bydirection
2021-07-06 01:56:34 -07:00
mergify[bot]
d1c3394e40
Merge pull request #3375 from Aire-One/fix/3371
...
[Fix/3371] wibox.widget.base set opacity emit "widget::redraw_needed"
2021-06-28 05:15:05 +00:00
Uli Schlachter
d25ca02493
Merge pull request #3377 from sclu1034/issue/fix-qa
...
Fix unused variable in example
2021-06-26 18:06:24 +02:00
Aire-One
53a880454f
fix(w.widget): signal typo and unit test
...
This is a combination of 2 commits.
* fix(w.widget): emit signal typo
* add(w.widget.base_spec): Unit test for setters signals emittion
2021-06-26 17:26:21 +02:00