Emmanuel Lepage Vallee
64fb498422
tests: Test the newly added notification icon request handlers.
2020-03-16 04:44:15 -04:00
Emmanuel Lepage Vallee
c75203ac03
naughty: Handle icon paths with file:// in them.
2020-03-16 04:44:11 -04:00
Emmanuel Lepage Vallee
32fd11a220
naughty: Move the get_icon implementation to 2 request handlers.
...
They can now be disconnected or extended.
2020-03-16 04:44:10 -04:00
Emmanuel Lepage Vallee
9e19e7a18c
tests: Test naughty request::icon.
2020-03-16 04:43:55 -04:00
Emmanuel Lepage Vallee
c3cdac368d
naughty: Stop request::icon as soon as there is an icon.
2020-03-16 04:43:53 -04:00
Emmanuel Lepage Vallee
625b9c8901
object: Add a private API to optimize chain of responsibilities.
...
Currently, emit_signal always call all connected function. However,
it is very wasteful for some I/O intensive operations like icon
lookup. This commit adds a trick (private API) to stop once
a condition is met.
It will also in the future be used for the permission system, but
this is not yet implementd.
2020-03-15 04:08:06 -04:00
Emmanuel Lepage Vallee
a3c37382be
naughty: Add a new request::icon for the main icon.
...
My initial implementation was overly optimistic. It turns out there
is no end in sight to "correctly" support icons. Apps randomly use
XDG name, paths and URLs. Rather than baloon the size of the
implementation, this commit moves toward to request:: pattern
found in other APIs. This will allow people who wish to "fix"
specific icons to do so in a way that scales.
The next 2 commits will move the current implementation to request
handlers.
2020-03-15 03:35:40 -04:00
Emmanuel Lepage Vallee
9cf717b994
naughty: Replace request::icon by request::action_icon.
...
It wasn't a good idea to use ::icon because sometime the notification
themselves needs to request assistance for their icons.
2020-03-14 20:21:35 -04:00
ArenaL5
e5566c0415
Add a test for awesome.get_key_name()
...
Signed-off-by: ArenaL5 <arenal5@gmx.com>
2020-03-14 19:33:04 -04:00
ArenaL5
e7436f132f
Expose get_key_name under awful.keyboard as suggested by @Elv13
...
and change comments and declaration style to match the rest of the codebase
Signed-off-by: ArenaL5 <arenal5@gmx.com>
2020-03-14 19:33:04 -04:00
ArenaL5
515867d42f
Fix luaa.c following suggestions from @psychon
...
Also remove a file that at the end really was unnecessary `xkb_utf32_to_keysym.h`
2020-03-14 19:04:08 -04:00
ArenaL5
131b25473f
Integration of `get_key_name()` in `hotkeys_popup`
...
Signed-off-by: ArenaL5 <arenal5@gmx.com>
2020-03-14 19:04:08 -04:00
ArenaL5
8bac3a4acb
Add C API to query keys
...
`awesome.get_key_name()` accepts a key in any format that `awful.key()` understands (querying current locale configuration if fed a keycode), and returns its keysym name and printable representation, if any.
This method is based in development code from xkbcommon/libxkbcommon that has not yet been released in a stable API; for this reason, code from 0345aba082
has been copied into a new C file.
Signed-off-by: ArenaL5 <arenal5@gmx.com>
2020-03-14 19:04:08 -04:00
mergify[bot]
19b8e176bb
Merge pull request #3037 from hoelzro/master
...
Fix broken link to Pango markup documentation
2020-03-13 06:10:05 +00:00
Rob Hoelz
1637e03dad
Fix broken link to Pango markup documentation
2020-03-12 21:19:22 -05:00
Emmanuel Lepage Vallée
1e1f5380a6
Merge pull request #3029 from Elv13/notification_markup
...
Fix most reported notification issues.
2020-03-09 14:16:35 -04:00
Emmanuel Lepage Vallee
b8e00b245f
tests: Trigger the widget "update content" code path.
2020-03-08 20:14:53 -04:00
Emmanuel Lepage Vallee
21cb4037bc
naughty: Fix updating the icon of DBus notification when passed by path.
2020-03-08 19:44:16 -04:00
handsome0hell
e5b12877b9
use user specified permission.
...
User settings should override default behavior.
2020-03-08 05:04:40 -04:00
Emmanuel Lepage Vallee
97e403b4e9
naughty: Correctly scale large square icons.
...
Fix #3005
2020-03-07 21:34:02 -05:00
Emmanuel Lepage Vallee
a69b6123b8
naughty: Fix updating `naughty.widget.icon`.
...
It was never call, untested and obviously broken...
2020-03-07 21:34:02 -05:00
Emmanuel Lepage Vallee
d5b652973f
naughty: Emit `property::icon` when the `image` or `images` change.
...
This way updating the icon at least *can* work.
2020-03-07 21:34:02 -05:00
Emmanuel Lepage Vallee
92d6fcda92
client: Check if `border_widht` is `nil` before setting it.
...
Fix #3026
2020-03-07 21:34:02 -05:00
Emmanuel Lepage Vallee
b6ce95cd15
naughty: Improve the rendering of notifications with invalid markup.
...
Some case like `foo<b>bar` still fail, but at least `foo<<<>>>bar`
works.
Fix #3022
2020-03-07 21:34:02 -05:00
mergify[bot]
0dfa5930b6
Merge pull request #3027 from SethBarberee/hotkeys_widget_doc_example
...
Add example for hotkeys_popup.widget
2020-03-07 03:11:27 +00:00
Seth Barberee
cbb03d1a0d
add example for hotkeys_popup.widget
2020-03-06 07:09:29 -06:00
Emmanuel Lepage Vallée
4b3207dc1a
Merge pull request #3021 from awesomeWM/revert-3019-escape_notif_text
...
Revert "naughty.widget: xml_escape message and title text"
2020-03-05 01:39:10 -05:00
Emmanuel Lepage Vallée
3bd777f61a
Revert "naughty.widget: xml_escape message and title text"
2020-03-05 01:38:27 -05:00
mergify[bot]
4a220d2da0
Merge pull request #3019 from unai-ndz/escape_notif_text
...
naughty.widget: xml_escape message and title text
2020-03-04 19:37:52 +00:00
Unai Fernández
6934efdd32
naughty.widget: xml_escape message and title text
...
fixes empty notifications when special characters like '&' are used
2020-03-04 19:32:13 +01:00
Emmanuel Lepage Vallée
382635a94a
Merge pull request #3015 from Elv13/return_doc
...
doc: Improve methods and functions rendering.
2020-03-01 16:42:27 -05:00
Emmanuel Lepage Vallée
607badcaa7
Merge pull request #3014 from Elv13/fix_keyboard_wdg
...
Fix the keyboard widget
2020-03-01 16:41:23 -05:00
Emmanuel Lepage Vallee
d408ec7846
doc: Use a more compact rendering for method return types.
2020-02-29 21:17:27 -05:00
Emmanuel Lepage Vallee
79dd2d731a
doc: Improve the method and function rendering.
...
It now adds the return type to the signature.
2020-02-29 21:17:27 -05:00
Emmanuel Lepage Vallee
5f9bd77bd9
doc: Do not add parentheses arpund property types.
...
They provide no value.
2020-02-29 21:17:27 -05:00
Emmanuel Lepage Vallee
75f51d2fee
keyboardlayout: Document `next_layout`.
2020-02-29 19:47:36 -05:00
Emmanuel Lepage Vallee
c220bcce87
widget: Enable properties by default for API level 5.
2020-02-29 19:47:36 -05:00
Emmanuel Lepage Vallee
870cf261fb
keyboardlayout: Enable properties.
2020-02-29 19:47:36 -05:00
Emmanuel Lepage Vallee
4c5fd3f222
widget: Fix set_buttons on widgets where properties are disabled.
...
Fix #3008
2020-02-29 19:47:36 -05:00
Emmanuel Lepage Vallee
115a151ac1
tests: Add the awesome.api_level to the widget utils.
2020-02-29 19:47:36 -05:00
mergify[bot]
2cf64c5afd
Merge pull request #3012 from mwild1/patch-1
...
doc: Update wallaper example in tutorial
2020-02-29 21:56:08 +00:00
mergify[bot]
b261bcd318
Merge pull request #3013 from unai-ndz/fix_client.property.persist
...
client: Fix property.persist
2020-02-29 21:51:53 +00:00
Unai Fernández
2c51493a69
client: Fix property.persist
2020-02-28 13:25:02 +01:00
Matthew Wild
c4bc882825
doc: Update wallaper example in tutorial
...
Reported by elbuggito in IRC that this the example line is no longer present in the default theme.lua.
2020-02-28 08:53:02 +00:00
mergify[bot]
a8451517db
Merge pull request #3010 from xaverh/master
...
Fix documentation of beautiful.menubar* options
2020-02-27 18:45:50 +00:00
Xaver Hellauer
df5d092304
Fix documentation of beautiful.menubar* options
2020-02-27 11:19:09 +01:00
mergify[bot]
20a73b269c
Merge pull request #3007 from awesomeWM/Elv13-layoutbox-1
...
Fix the layoutbox screen
2020-02-25 18:02:56 +00:00
Emmanuel Lepage Vallée
f88efc8854
Fix the layoutbox screen
...
Fix #3004
2020-02-23 16:14:06 -05:00
Emmanuel Lepage Vallée
dd289e5ab2
Merge pull request #2853 from Elv13/notif_rules
...
Add the notification rules.
2020-02-22 18:48:27 -05:00
Emmanuel Lepage Vallée
6bd1c1031a
Update lib/ruled/notification.lua
...
Co-Authored-By: Seth Barberee <seth.barberee@gmail.com>
2020-02-22 18:48:06 -05:00