Commit Graph

10992 Commits

Author SHA1 Message Date
Cauchy Underground c9a7698677 Add a scroll smooth step function 2024-04-06 11:07:51 +02:00
Emmanuel Lepage Vallée 8b1f8958b4
Merge pull request #3746 from Elv13/grid_border
Modernize the `wibox.layout.grid` module and add border support.
2024-03-23 22:50:03 -07:00
Emmanuel Lepage Vallée e6f5c79808
Merge pull request #3879 from Elv13/2023_xmas_commits_pr1
Fix the documentation warnings
2024-01-20 16:34:06 -08:00
mergify[bot] 7707618336
Merge pull request #3886 from BWPanda/patch-1
Fix typo in object.lua documentation
2024-01-21 00:31:55 +00:00
Peter Anderson 0dcfc86167
Update object.lua 2024-01-11 10:09:54 +00:00
mergify[bot] 75758b07f3
Merge pull request #3878 from arunsathiya/master
Use GITHUB_OUTPUT envvar instead of set-output command as the latter is deprecated
2024-01-08 23:30:02 +00:00
Emmanuel Lepage Vallée 1f7ac8f9c7
Merge pull request #3559 from Elv13/border_container
Add a new border container
2023-12-31 15:36:02 -08:00
Emmanuel Lepage Vallée 2eab55e536 Update lib/wibox/container/border.lua
Co-authored-by: Aire-One <aireone@aireone.xyz>
2023-12-31 15:27:21 -08:00
Emmanuel Lepage Vallee 1291a346f3 doc: Add more `wibox.container.background` examples. 2023-12-31 15:27:21 -08:00
Emmanuel Lepage Vallée 00ba63b44e
gears.surface: Add crop (#3882)
* added surface crop function

* added busted tests

* added devShell Flake

* Revert "added devShell Flake"

This reverts commit 0acb3d4e43.

* general purpose crop added

* cleanup

* merged functions, added tests

* replaced gdebug.print_error with error

* clearer error message for crop

Co-authored-by: Lucas Schwiderski <4508454+sclu1034@users.noreply.github.com>

* make error message shorter

* surface.crop: Fix doc warnings.

---------

Co-authored-by: Paul Schneider <74120050+paulhersch@users.noreply.github.com>
Co-authored-by: Paul Schneider <paul.schneider2@student.uni-halle.de>
Co-authored-by: Lucas Schwiderski <4508454+sclu1034@users.noreply.github.com>
2023-12-31 15:15:50 -08:00
Emmanuel Lepage Vallee 5ee926d5f1 background: Add a way to scale a background gradient.
This is a feature request from the chat. Right now, only deprecated
hacks allow this to be implemented. This is a valid use case and
must be supported for HiDPI use cases.
2023-12-31 14:57:10 -08:00
Emmanuel Lepage Vallee e82de8edb4 background: Deprecate `bgimage`.
It is now handled by the `wibox.container.border`. The current
implementation had many unhandled corner case and is less
flexible than the new API.

Some might argue deprecating the background from a background
container is... strange. This is true. However, keeing all
use case within the same codebase would make it too large.

The `gears.shape` support is incompatible with the border
widgets (which are used to implement the background images).
2023-12-31 14:56:18 -08:00
Emmanuel Lepage Vallee 57b766ccf9 tests: Test the border container. 2023-12-31 14:54:44 -08:00
Emmanuel Lepage Vallee dc207d5b49 container: Add a broder container.
Rather than bloat the `background` container with another 1k lines,
a new container is added. The goal is to implement CSS-style slicing
for the background images. The container also allows to place
generic widgets on each sides and corners of the container.

The main use case for this container is to replace the old
`awful.titlebar` API with `awful.decoration`. That new module will
allow a central client widget to be surrounded by widgets rather than
have 4 separate drawing areas. The border container is designed to
make complex border+titlebar setup trivial.
2023-12-31 14:54:44 -08:00
Emmanuel Lepage Vallee e23940cc6a imagebox: Expose the "optimal size" properties.
The `textbox` already has the equivalent. This will soon be used
by the new `wibox.container.border` widget.
2023-12-31 14:54:44 -08:00
Emmanuel Lepage Vallee ab121e9ac0 imagebox: Support a CSS file.
Before, the CSS had to be inline. Now that the border container uses
this code, it makes sense to make it more flexible.
2023-12-31 14:54:44 -08:00
Emmanuel Lepage Vallee 5c9ffb8ef3 imagebox: Expose the private SVG handling function.
To be used by `wibox.container.border`, which is a specialized imagebox.
2023-12-31 14:54:44 -08:00
Emmanuel Lepage Vallee 47855e4164 tests: Test the 3 new imagebox extents. 2023-12-31 14:54:44 -08:00
Emmanuel Lepage Vallee ecc20dd0b8 imagebox: Add 3 new fit policies.
This will be used soon by a nice CSS inspired image slicer
container/layout.

They have a limitation inherited from Cairo of only working on a
single axis. This isn't important for 99% of the use case.
2023-12-31 14:54:42 -08:00
mergify[bot] 2f8b334234
Merge pull request #3735 from Theory-of-Everything/feat-theme-dark
doc: improve dark theme
2023-12-31 22:41:03 +00:00
Miroslav Bendík 3537174e6c
Fixed end of modeline handling (#3789) 2023-12-31 14:29:43 -08:00
mergify[bot] 2682bcb2ed
Merge pull request #3857 from gldrk/ungrab-on-unmap
Release all grabs when unmanaging windows
2023-12-31 22:14:10 +00:00
Emmanuel Lepage Vallee eddb83fb72 calendar: Add a border width property. 2023-12-31 00:57:07 -08:00
Emmanuel Lepage Vallee de7f3bfe90 grid: Remove an outdated example `print`. 2023-12-31 00:57:07 -08:00
Emmanuel Lepage Vallee 956bd96e94 grid: Apply Awesome v4.2 naming conventions.
* Stop using top level properties for vertical/horizontal
* No abbreviations
* Use height/width instead of size
* Don't use methods where properties can be used
2023-12-31 00:57:07 -08:00
Emmanuel Lepage Vallee f8f5e2c69b grid: Add border support.
This is long overdue. A bit of historical context. The grid API
is losely somewhat based on the old `radical` module, but was
heavily improved by @getzze. That version had row_span and col_span.

This made the way the previous implementation coded the border
incompatible. I spent some time back then trying to bolt it back on,
but the complexity is quite high and never made it work right.

This commit goes in another direction. Rather than draw the border,
it creates a mask where the border should *not* be, then bucket fill
the widget. This is the equivalent of CSS `border-collapse`.

It also support custom borders. This allows dashed lines and partial
borders.

The main use case will be to add border support to the calendar. It
was previously possible to partially do it using custom cell painters,
but was pretty hacky. Now that the calendar will deprecate the custom
painters in favor of `widget_template`s, a more robust alternative was
required.

The drawback of this commit is obviously the added complexity to the
most complex layout. This is why it adds many tests to cover the various
corner cases.
2023-12-31 00:57:07 -08:00
Emmanuel Lepage Vallee 2d5c4b64c5 grid: Add the ability to specify the properties inline.
This is already used in the `wibox.layout.manual` layout. It makes
the widget easier to use. Previously, using the imperative syntax
was necessary for most grids.
2023-12-31 00:56:24 -08:00
Emmanuel Lepage Vallee 3beb2187fa tests: The `grid` layout has no `padding` property.
Looks like a rebase leftover from an earlier iteration of the code.
2023-12-31 00:56:24 -08:00
Emmanuel Lepage Vallee b5a5f7c575 shims: Make sure properties defined in `awful/client.lua` are called.
Previously, it would raw_set properties like floating. This means the
signals and the result of calling `awful.client.property.get` was
different. Some older code uses `awful.client.property.get` or
`awful.client.object.get_floating` rather than `c.floating`.

With this change, all native properties should be handled as so
and all non native properties set at the end, after `__newindex`
is defined.

The list of properties was extracted using

    cat client.c
        | tail -n100
        | grep -Eo '["][^"]+["]'
        | grep -Eo '[^"]+'
2023-12-30 14:21:13 -08:00
Emmanuel Lepage Vallee 477a75b6b8 shims: Add "urgent" colors. 2023-12-30 14:21:13 -08:00
Emmanuel Lepage Vallee d1c9f59259 cmake: Support splitted documentation examples templates.
They can now use multiple files. Some of the templates are getting
unmaintainable and would benefit from being multiple small widgets.
2023-12-30 14:21:13 -08:00
Emmanuel Lepage Vallee 3cb42b7a33 doc: Fix warnings in `awful.screenshot` and `gears.shape`.
Those were written before the doc linting was merged.
2023-12-30 14:21:13 -08:00
Emmanuel Lepage Vallee 8e099cfda5 doc: Fix the @property handling for @classmod.
Previously, things like `awful.screenshot` would print a false
positive warning because the `item.name` was fixed after the
linting rather than before it.
2023-12-30 14:21:13 -08:00
Peter Anderson cb72c0a8b1
Update menu.lua (#3876) 2023-12-29 13:19:12 -08:00
Arun a9fca7c3d3
Use GITHUB_OUTPUT envvar instead of set-output command as the latter is deprecated 2023-12-28 13:19:41 -08:00
mergify[bot] 375d9d7235
Merge pull request #3864 from kosorin/fix/redraw-drawable
Redraw drawable when changing geometry
2023-11-19 01:43:10 +00:00
mergify[bot] 3813320a55
Merge pull request #3869 from unknown321/patch-1
#3867 allow KP_Enter in main menu
2023-11-19 01:41:45 +00:00
Denis Efremov dfe6a47893
Added gears.string.psplit function to support patterns (#3839) 2023-11-18 17:14:35 -08:00
u bcb97c9c18
#3867 allow KP_Enter in main menu 2023-11-19 03:37:16 +03:00
David Kosorin 90a3a992ae
Redraw drawable when changing geometry 2023-10-12 21:40:36 +02:00
mergify[bot] 7ed4dd620b
Merge pull request #3863 from BarbUk/fix/notification_default_action_when_dismissed_by_user
Send a default action when notification is closed by user
2023-10-12 09:57:10 +00:00
BarbUk 5daae2bb5d
Send a default action when notification is closed by user 2023-10-09 15:07:39 +02:00
gldrk 16c560a568 Release all grabs when unmanaging windows
When a window is unmapped, awesome stops tracking it, possibly
leaving stale grabs behind.  These grabs can be activated if the
window is mapped again without awesome’s knowledge.  This results
in a locked pointer until the grab window is destroyed.

Fix by releasing passive grabs before untracking a client window.
2023-09-26 06:19:09 +03:00
Actionless Loveless aa8c7c6e27
fix(awful: layouts: tile: mouse_resize_handler): count the size of useless_gaps around the client (fixes #424) (#3846) 2023-08-30 04:27:52 -07:00
Actionless Loveless cd7cb0e7e7
fix(permissions: geometry): allow geometry change for non-floating clients if it was requested by awesome's own fullscreen and maximize handlers (fixes: #3844, #3834) (#3845) 2023-08-30 04:25:59 -07:00
Actionless Loveless 28381d2792
style(awful: permissions): luacheck updated (https://github.com/awesomeWM/awesome/pull/3839#issuecomment-1676985065) (#3840) 2023-08-17 10:18:35 -07:00
Actionless Loveless d36e1324d1
fix(naughty: icon: new, fit): use `icon_size` from the notification object if defined (fixes #3752) (#3805)
* fix(naughty: icon: new, fit): use `icon_size` from the notification object if defined (fixes #3752)

* fixup! fix(naughty: icon: new, fit): use `icon_size` from the notification object if defined (fixes #3752)

* fixup! fixup! fix(naughty: icon: new, fit): use `icon_size` from the notification object if defined (fixes #3752)
2023-08-13 15:52:12 -07:00
David Kosorin ed71b17f1b
Fix slider with minimum value (#3807) 2023-08-12 16:59:15 -07:00
mergify[bot] 0e5fc4575a
Merge pull request #3819 from HoNamDuong/master
fix(awful.key.keygroups): can't use 0 . key
2023-06-14 06:02:43 +00:00
mergify[bot] 8615c100cd
Merge pull request #3817 from mattplm/fix_naughty_notification_links
docs: Fix links in ruled.notifications
2023-06-14 06:01:18 +00:00