mergify[bot]
66b1780d85
Merge pull request #3221 from Jonta/patch-1
...
Grammar
2020-12-05 17:13:30 +00:00
Jonta
1c53c36eb7
Grammar
2020-12-05 16:17:45 +01:00
Emmanuel Lepage Vallee
830e64bc8d
doc: Extend the widget documentation with the new modules.
...
Adds:
* gears.watcher
* gears.reactive
* gears.connection
2020-11-30 00:43:38 -08:00
Emmanuel Lepage Vallee
b28a84fbc3
tests: Test `gears.watcher`.
2020-11-30 00:43:38 -08:00
Emmanuel Lepage Vallee
9d55d385c7
Add a new `gears.watcher` module.
...
It mostly replaces `awful.widgets.watch` with a more generic API.
`awful.widgets.watch` was only useful for textbox (without abusing
of its low-level callbacks). This can be used both as a generic
polling module for files and commands. It can also be attached
directly to widgets or mixed with `gears.reactive` to build an
higher level output.
2020-11-30 00:43:38 -08:00
Emmanuel Lepage Vallee
2376535e78
tests: Test `gears.connection`.
2020-11-30 00:43:38 -08:00
Emmanuel Lepage Vallee
8f9d23b11b
Add a new `gears.connection` module.
...
This is the declarative DSL version of `:connect_signal`. It also
has some magic to access the widet object using their IDs without
the usual imperative code.
2020-11-30 00:43:38 -08:00
Emmanuel Lepage Vallee
7ffee87528
tests: Test the `gears.reactive` module.
...
It has both doc and unit tests. They are disabled for Lua 5.1 since
this feature isn't working yet.
2020-11-30 00:43:38 -08:00
Emmanuel Lepage Vallee
e6793376e5
Add a new reactive programming module.
...
This module allows to attach an "expression" to a widget property.
This expression will be evaluated each time it's content may change.
This is the first part of a trio of new APIs to improve setting dynamic
values to a widget from 3 different angles.
2020-11-29 22:33:00 -08:00
Emmanuel Lepage Vallee
537b44b57b
widget: Add a generic way to extend the declarative tree system.
...
With this addition, it is now possible to let the right hand side
part of the `key = value` to handle setting the value.
2020-11-29 03:12:53 -08:00
Emmanuel Lepage Vallee
23d3969d89
timer: Enable the full `gears.object` property support.
...
In the next few commits, this will be used to implement a replacment
for `awful.widgets.watch`.
2020-11-29 03:12:53 -08:00
Emmanuel Lepage Vallee
e3976e0a19
timer: Replace `.data` by `._private`.
...
First step toward converting it into a normal `gears.object` to
later use a base class.
2020-11-29 03:12:53 -08:00
Emmanuel Lepage Vallee
3feeec3a1f
widget.base: Add template support.
...
This allows some widgets to have declarative templates as first level
elements. It can be used for lazy loading or conditional loading.
This commit also improve get_children_by_id, but does not fix all the
corner case. As proposed by psychon, this will require them to be
moved to the hierarchy.
2020-11-29 03:12:53 -08:00
Emmanuel Lepage Vallee
f21c62237e
Add the output of some future files.
...
Otherwise the CI will be angry.
2020-11-29 03:12:53 -08:00
Unai
538586c170
textbox: print traceback on error ( #3205 )
2020-11-01 16:12:42 -08:00
mergify[bot]
cc67a5b40b
Merge pull request #3199 from psychon/grid_direction_properties
...
Fix setters/getters for grid layout direction properties
2020-10-13 07:23:23 +00:00
Uli Schlachter
f1871873aa
Fix setters/getters for grid layout direction properties
...
Wow. This code was so weirdly broken, I have no words.
Fixes: https://github.com/awesomeWM/awesome/issues/3198
Signed-off-by: Uli Schlachter <psychon@znc.in>
2020-10-10 17:32:04 +02:00
mergify[bot]
9e67481ee9
Merge pull request #3197 from dpetzold/fix-awesome-client-example
...
Fix awesome-client example
2020-10-09 20:21:52 +00:00
Derrick Petzold
f49687256d
Make easier to cut-n-paste
2020-10-09 11:30:17 -07:00
Derrick Petzold
d33d38e768
Fix awesome-client example
2020-10-09 11:27:37 -07:00
mergify[bot]
6f047e9468
Merge pull request #3125 from actionless/hotkeys-vimdiff
...
feat(awful: hotkeys_popup: vim): add vimdiff
2020-10-07 15:04:52 +00:00
Emmanuel Lepage Vallée
ed6cdf87b1
Merge pull request #3187 from PlayerNameHere/master
...
Fix wibox.layout.stack:raise() returning prematurely and inserting the widget at the end instead of the start
2020-09-28 23:32:06 -07:00
Emmanuel Lepage Vallée
5cbc423938
notifications: Make `:reset_timer()` more intuitive. ( #3175 )
...
Previously it would only work if there already was a timeout to
avoid some infinite loops. Now it just delay the new timer to the
next loop.
Fix #3147
2020-09-27 23:34:14 -07:00
PlayerNameHere
45cfbe72bf
Add getters for wibox.layout.stack offset properties
...
Getters for the horizontal_offset and vertical_offset properties
were missing, which resulted in nil when trying to get them.
2020-09-28 00:00:08 +08:00
PlayerNameHere
2647e1c855
Fix emitted signals in wibox.layout.stack:set_horizontal_offset()
2020-09-27 23:58:22 +08:00
PlayerNameHere
13e41a2a7b
Fix wibox.layout.stack:raise()
...
There seem to be two issues here. First, the if-statement at the
beginning of the function will return prematurely if
`self._private.widgets[index]` exists. There seems to be a
missing `not` there.
Second, index 1 is interpreted as the top of the stack (although the
documentation says otherwise), but the widget is inserted at the end of
`self._private.widgets`, so it gets pushed to the bottom
instead of the top.
2020-09-27 16:02:17 +08:00
mergify[bot]
ca29aa191f
Merge pull request #3183 from focusaurus/patch-1
...
Doc typo width property duplicated instead of height
2020-09-19 21:59:12 +00:00
Peter Lyons
764b84da56
Doc typo mislabeled height
2020-09-19 08:28:00 -06:00
mergify[bot]
d06069e5dc
Merge pull request #3180 from jcrd/fix-getopt-2
...
Make 's' getopt flag take an argument
2020-09-17 17:22:11 +00:00
James Reed
af7a6de1dc
Make 's' getopt flag take an argument
2020-09-17 03:27:35 -06:00
mergify[bot]
296a9de8b9
Merge pull request #3179 from jcrd/fix-getopt
...
Fix missing getopt flags
2020-09-17 00:13:55 +00:00
James Reed
bcc7f62657
Fix missing getopt flags
...
Flags 'f' and 's' were added.
2020-09-16 14:27:14 -06:00
Emmanuel Lepage Vallée
46a9a7b970
modeline: Check the first XDG and fallback paths for modelines. ( #3172 )
...
This is not perfect. If the first config is invalid, then it wont use
the correct modeline. However there is no way to know if the config
is valid before attempting to execute it, so it's the best we can do.
Fix #3166
2020-09-14 11:02:09 -07:00
mergify[bot]
d5ce4d5d1c
Merge pull request #3173 from Elv13/fix_maximized_tiled
...
screen: Correctly detect tiled_clients.
2020-09-14 17:08:51 +00:00
mergify[bot]
9d766ba622
Merge pull request #3176 from Elv13/notification_foot_gun
...
naughty: Improve backward compatibility to protecting the constants.
2020-09-14 17:04:00 +00:00
mergify[bot]
a57687e22a
Merge pull request #3174 from Elv13/clear_tag
...
Fix clearing the tag clients.
2020-09-14 17:03:50 +00:00
mergify[bot]
9d25cfb546
Merge pull request #3171 from Elv13/hack_xkbcommon
...
Quick fix to support libxkbcommon >= 1.0.
2020-09-14 16:58:02 +00:00
Emmanuel Lepage Vallee
0cbb7f59b0
naughty: Improve backward compatibility to protecting the constants.
...
If the user copy/pasted `naughty.config.*` into their config rather
than set values 1 by 1, we could no longer add new values since they
would get removed. To prevent more users being affected by this, we
now silently ignore the new table while still setting all the values.
Fix #3145
2020-09-14 02:11:32 -07:00
Emmanuel Lepage Vallee
be05862bf4
doc: Add an awful.tag.clear example.
2020-09-14 01:17:31 -07:00
Emmanuel Lepage Vallee
a0fda78714
tests: Test clearing a tag.
2020-09-14 01:17:31 -07:00
Emmanuel Lepage Vallee
b1b9bd838d
tag: Add a `:clear()` method.
...
It was previously done using `:clients{}`, but that super unintuitive,
hard to search and has no signal. This fixed that.
2020-09-14 01:17:31 -07:00
Emmanuel Lepage Vallee
68bc9eba15
tag: Fix an off-by-one caused by a mutatation during a `foreach`.
...
Fix #3167
2020-09-14 00:19:38 -07:00
Emmanuel Lepage Vallee
6dda0e4599
screen: Correctly detect tiled_clients.
...
At some point we added an unified `maximized` property to the
client class. Originally it was just setting both horizontal
and vertical maximization. LAter on, this was rewritten to
make the state change more atomic and reversible.
Soon after, we added `immobilized_horizontal` and
`immobilized_vertical` to make most `if` simpler.
`screen.tiled_clients` was missed in that refactoring.
Fix #3169
2020-09-13 23:35:57 -07:00
Emmanuel Lepage Vallee
7e0bd38887
Quick fix to support libxkbcommon >= 1.0.
...
The next step will be to use the "real" function when a libxkbcommon
version is found rather than the compat version.
Fix #3168
2020-09-13 21:54:56 -07:00
kdrobnyh
97c3849ae7
Fixed showing hotkeys_popup on the focused screen ( #3164 )
2020-09-08 22:10:21 -07:00
mergify[bot]
7a759432d3
Merge pull request #3044 from SethBarberee/firefox_keys_fix
...
add additional match for firefox in awful.hotkeys_popup/keys/firefox.lua
2020-08-01 23:01:50 +00:00
Uli Schlachter
5cdd960669
Merge pull request #3134 from jcrd/ratio-adjust-typo
...
Fix adjust misspelling
2020-08-01 09:24:22 +02:00
James Reed
e2b00c71e7
Fix adjust misspelling
...
Co-authored-by: Aire-One <Aire-One@users.noreply.github.com>
2020-07-31 17:33:12 -06:00
mergify[bot]
49a3859c8e
Merge pull request #3128 from hchargois/master
...
Make scroll work in the usual way in default rc.lua
2020-07-06 15:48:21 +00:00
Hugo Chargois
5b6585fc35
Make scroll work in the usual way in default rc.lua
...
Signed-off-by: Hugo Chargois <hugo.chargois@free.fr>
2020-07-06 01:02:11 +02:00