Emmanuel Lepage Vallée
f735a60b95
Merge pull request #2511 from Elv13/xmas_2k18_5
...
Add the layoutlist
2019-01-26 12:22:03 -05:00
Sorky
bf62695f76
awful.menu: Move code from rc.lua to awful.menu
...
Fixes : #2524
2019-01-26 12:19:05 -05:00
Emmanuel Lepage Vallee
8b60c05118
widget: Add a layoutlist widget
...
Like taglist and tasklist, but for layouts
2019-01-26 01:34:59 -05:00
Emmanuel Lepage Vallée
7e7733c6d1
Merge pull request #2521 from Elv13/modifiers
...
awesome: Add a `modifiers` field.
2019-01-24 23:59:54 -05:00
Emmanuel Lepage Vallée
c87e7aad56
Merge pull request #2510 from Elv13/xmas_2k18_4
...
Add the popup widget take 2 (only relevant commits)
2019-01-24 23:24:22 -05:00
Emmanuel Lepage Vallee
031c773658
popup: Add a popup module to awful
...
This module is half way between the tooltip and the raw wibox.
It supports the following features:
* Auto resize to its widget size
* Support parent objects and placement
Fix #1683
2019-01-24 10:58:45 -05:00
Emmanuel Lepage Vallee
063ae48438
awful.tag: Select the fallback layout from the list of layouts.
...
This isn't 100% consistent with the old fallback, but avoids the
case where it has an explicit list to pick from and picks something
else.
2019-01-24 06:31:57 -05:00
Emmanuel Lepage Vallee
831e92410e
tag.layouts: Skip get_layout when looking for the current layout.
...
If the `layouts` are set during initialization, `t.layout` will
return `floating` if `t.layouts` is added before `t.layout`. By
using the raw layout, the fallback doesn't kicks in.
2019-01-24 06:31:57 -05:00
Emmanuel Lepage Vallee
2892648916
awful.layout: Add a deprecated notice.
...
It was already deprecated, but this wasn't documented and silently
fixed.
2019-01-24 06:31:57 -05:00
Emmanuel Lepage Vallee
eb3ca746ca
awful.layout: Support the current tag layouts in `.inc()`.
...
Also "modernize" the code by leveraging gears.table for more logic.
2019-01-24 06:31:57 -05:00
Emmanuel Lepage Vallee
0d80b3f0e9
keygrabber: Do not try to guess the modifiers name
...
There is no an API to query the correct value
Fixes #2515
2019-01-21 03:14:26 -05:00
Emmanuel Lepage Vallee
4b76ca9d38
doc: Fix awful.hotkeys_popup.show_help formatting.
2019-01-13 23:57:04 -05:00
Sorky
cf5b0b51ef
Update awesomerc.lua
...
Alternative fix for hotkey_popup via awful menu showing on wrong screen
2019-01-13 23:50:58 -05:00
Emmanuel Lepage Vallee
eb8bfa6407
doc: Fix a copy/paste mistake in the screen module
2019-01-05 04:32:37 -05:00
mergify[bot]
6d2fc5c12b
Merge pull request #2523 from Elv13/compact_doc
...
doc: Merge some documentation pages
2019-01-03 12:50:21 +00:00
Daniel Hahler
f7c144f365
doc: fix type for cmd with easy_async_with_shell ( #2531 )
...
It only accepts a string.
With a table it will return an error (string):
> "spawn: parse error: Non-string argument at table index 3"
[ci skip]
2019-01-03 13:46:11 +01:00
Emmanuel Lepage Vallee
f0df2d6e8f
doc: Merge the `termite` hotkey popup doc
...
The other components are already merged as such.
2018-12-31 17:49:14 -05:00
Emmanuel Lepage Vallée
a559f55c6a
prompt: Add a `with_shell` property. ( #2500 )
...
Fixes #2486
2018-12-31 15:38:14 -05:00
Emmanuel Lepage Vallee
e2f164208c
doc: Better document awful.placement.next_to
2018-12-24 21:52:54 -05:00
Emmanuel Lepage Vallee
8bcdd0b794
placement: Add some extra checks to limit the risk of regressions.
...
Given noone understand this code, this will prevent some semi likely
regressions from going unnoticed. The main risk is the shims not
producing the exact same results as the real implementation and
cause different code paths to be taken.
As of this commit, both the "real" and "shim" implementation were given
the same set of tests with print() at every step of next_to. The
resulting log was then checksummed to ensure both are identical.
2018-12-24 21:52:30 -05:00
Emmanuel Lepage Vallee
89867386c5
tests: Add images to the tooltip documentation
...
It also add some properties such as `border_width`, `border_color`
and `preferred_alignments`.
It also fix a documentation bug where the `margin_topleft` was called
`margins_topleft`. To conform to the documentation, both are now valid
but one should be removed the next time the API changes.
Fixes #1978
2018-12-24 21:52:30 -05:00
Emmanuel Lepage Vallee
52f62b712c
tooltip: Allow the border to be configured.
...
Given the tooltip border is "client side" instead of X11 to allow
anti-aliasing to work when a shape is used, it doesn't use the wibox
border.
2018-12-24 21:52:30 -05:00
Emmanuel Lepage Vallee
2b52926b48
tooltip: Pass the parent object to awful.placement, not the position.
...
By passing the geometry, important information used by
awful.placement.next_to were "lost". Given `next_to` supports both
widget position, the mouse and client/wibox relative positioning, it
has to know the object type.
2018-12-24 21:52:30 -05:00
Emmanuel Lepage Vallee
68bfde45e1
tooltip: Cleanup the margin API.
...
Make it closer to other APIs across Awesome.
2018-12-24 21:52:30 -05:00
Emmanuel Lepage Vallee
3380fd85fc
tooltip: Add alignment options.
...
It's a list of preferred alignments because sometime the best one wont
fit in the screen.
2018-12-24 21:52:30 -05:00
Emmanuel Lepage Vallee
d8a7782bf4
tests: Add an awful.placement.next_to test
...
It was overdue
2018-12-24 21:52:30 -05:00
Emmanuel Lepage Vallee
33a39ce38d
placement: Make sure `next_to` result is consistent across calls
...
It depended on a hash `pairs` iteration. This caused an issue only when
the primary position wasn't available.
2018-12-24 21:52:30 -05:00
Emmanuel Lepage Vallee
f1145af49d
placement: Allow to configure the next_to anchors
...
They were previously hardcoded to match the classic context menu
behavior. It isn't flexible enough for some popup type.
2018-12-24 21:49:52 -05:00
Emmanuel Lepage Vallee
3fa42f3b1a
placement: Fix `border_width` for `next_to`
...
All previous users used client side borders so the issue went
unnoticed. This code will be unit tested by the `popup` module
in a few commits.
2018-12-24 21:49:52 -05:00
mergify[bot]
7d0976912e
Merge pull request #2435 from PeterNerlich/fix-hotkeys_popup
...
stop keygrabber on hide through click
2018-12-20 04:06:17 +00:00
Yauhen Kirylau
820094c3c4
feat(awful: titlebar): expose fallback title ( #2459 )
...
feat(awful: titlebar): expose fallback title
2018-12-17 12:47:14 -05:00
Emmanuel Lepage Vallée
de04cecf46
Merge pull request #2454 from Aire-One/add_widget_prompt_params
...
Add parameters to awful.widget.prompt constructor.
2018-12-17 10:45:54 -05:00
actionless
1da5554fdc
fix(hotkeys_popup): rebase fix for keygrabber instance
2018-12-17 16:29:36 +01:00
Emmanuel Lepage Vallée
7231087bdb
Update widget.lua
2018-12-17 16:29:36 +01:00
Peter Nerlich
e55cc7c912
stop keygrabber on hide through click
...
fixes #2434
2018-12-17 16:29:36 +01:00
Michele Lazzeri
2308509f39
lib/awful/rules.lua fix requesting nil tag name ( #2479 )
...
Related PR: #2354
We always passed a nil value, guess it's a typo.
2018-11-14 15:23:05 -05:00
Sergey Vlasov
d266309ef8
awful.client: Fix c.requests_no_titlebar
...
The property was always false because of a typo.
Signed-off-by: Sergey Vlasov <sigprof@gmail.com>
2018-11-12 11:48:59 +03:00
actionless
b6b6bc0bd6
feat(awful: hotkeys_popup): add args.show_awesome_keys option
...
Update lib/awful/hotkeys_popup/widget.lua
Update lib/awful/hotkeys_popup/widget.lua
fix(awful: hotkeys_popup): caching issue if showing the same widget instance with and without AwesomeWM hotkeys
doc(awful: hotkeys_popup): extend docstring for args.show_awesome_keys
2018-11-03 17:27:29 +01:00
tototest99
38505a00a2
doc(awful: spawn): Correct a typo in spawn.lua, Fixes #2456 ( #2458 )
2018-11-02 15:19:31 +01:00
Aire-One
1a96642615
format code and doc
2018-10-31 11:42:36 +01:00
Aire-One
bc822c0af7
Add all parameters from awful.prompt to awful.widget.prompt constructor.
2018-10-31 11:35:56 +01:00
Aire-One
d5f20a7e0b
Add `done_callback` parameter to awful.widget.prompt constructor.
2018-10-31 09:00:18 +01:00
Emmanuel Lepage Vallée
2458f127f3
Merge pull request #2360 from Elv13/add_awful_tag_layouts
...
awful.tag: Add awful tag layouts
2018-10-22 14:40:16 -04:00
Emmanuel Lepage Vallée
aa16d77d15
Merge pull request #2423 from Elv13/better_rules_doc
...
Better awful.rules doc
2018-10-16 08:44:58 -04:00
Emmanuel Lepage Vallée
35130169c9
keygrabber: Rename release_event to stop_event ( #2422 )
...
In the earlier revision of the keygrabber PR, there was a `release_key`
and it was suggested to rename it `stop_key`. However its sibling
`release_event` wasn't, so it is now confusing.
The commit adds a mild deprecation codepath to avoid breaking configs
based on git-master. However it isn't a "long term" deprecation notice
and the code can probably be removed in 5.0 without further delay.
2018-10-16 08:42:56 -04:00
Emmanuel Lepage Vallee
990b1ddb9d
awful.tag: Add a "tag centric" way to manage a layout list.
...
Previously, the layout list was global. However it wasn't covering all
possible use cases and make using `awful.widget.layoutlist` hard since
a layout could be excluded from the `awful.layout.layouts` but still
used for a tag (by setting it explicitly).
2018-10-15 16:10:18 -04:00
Emmanuel Lepage Vallee
ae5fc042ae
layout: Add a get_tag_layout_index function.
...
It helps check of the current tag layout is part of
awful.layout.layouts
2018-10-15 14:21:24 -04:00
actionless
3cef72bb30
fix(awful: rules): don't raise every focusable client on awesome startup
...
re #2095
2018-10-14 20:41:45 +02:00
Emmanuel Lepage Vallee
43a82f34f0
doc: Add more examples about the spawn.easy_async
...
Ref #1373
Ref https://stackoverflow.com/questions/52634985/awesome-wm-os-execute-vs-afwul-spawn
2018-10-12 14:19:25 -04:00
Emmanuel Lepage Vallee
845b9a930c
doc: Refactor awful.spawn doc to have a property list.
2018-10-12 14:19:25 -04:00