Emmanuel Lepage Vallee
a158c3adab
wibar: Fix a race condition when adding new wibars
...
Fix #1523
2017-02-13 21:01:13 -05:00
actionless
f8d12a855f
feat(awful: widget: promptbox): accepts `fg` and `bg` as arguments; improve docstring
2017-02-12 17:59:19 +01:00
Yauhen Kirylau
148723f053
refactor(awful: hotkeys_popup): expose configuration options for a widget instance and use more object-oriented structure for the widget ( #1533 )
...
* refactor(awful: hotkeys_popup): expose configuration options for a widget instance and use more object-oriented structure for the widget
closes #1352
closes #1497
* doc(awful: hotkeys_popup): add @beautiful docstrings
* fix(awful: hotkeys_popup): add label_bg for misc labels; improve @beautiful docstrings
2017-02-10 19:50:10 +01:00
copycat-killer
7a728cec6b
awful.widget.watch: return timer too
2017-02-08 14:53:40 +01:00
Emmanuel Lepage Vallee
69f292a31f
doc: Add basic documentation for the custom rules properties.
...
In the lack of a better documentation.
2017-02-07 11:13:15 -05:00
Emmanuel Lepage Vallee
477df4a35b
maximized/fullscreen: Use relative coords when restoring size.
...
Also apply a copy of the memento instead of mutating the
original.
Fixes #1320
2017-02-07 11:13:15 -05:00
Emmanuel Lepage Vallee
6da20bb301
rules.placement: Add properties to honor padding and workarea
2017-02-07 11:13:15 -05:00
Emmanuel Lepage Vallee
5f693ead30
rules: Move tags into the same group as tag
...
Unrelated to this PR, but found while doing a review.
2017-02-07 11:13:15 -05:00
Emmanuel Lepage Vallee
0bf8bb6a64
fullscreen: Add a beautiful option to remove borders.
...
This was previously done in a callback, but wasn't really
clean and/or bug free. Borders could end up leaking on other
screens as proven by an integration test.
Fix #171
2017-02-07 11:13:15 -05:00
Emmanuel Lepage Vallee
4ea6e133f8
placement: Add some missing `ignore_border_width` checks.
...
It was done in some places, but not all.
2017-02-07 11:13:15 -05:00
Emmanuel Lepage Vallee
3a0f139b9e
maximize: Officially honor screen padding
...
Add an option too.
Fix #1459
2017-02-07 11:13:15 -05:00
Emmanuel Lepage Vallee
631e75a757
ewmh: Use the request:: API in the border_width / wa callback
...
And stop listening to property::geometry, it's no longer needed.
This also remove messing up the border without saving it
somewhere. The concept is sound, but not the implementation.
2017-02-07 11:13:15 -05:00
Emmanuel Lepage Vallee
d5b681502a
maximize: Stop mixing horizontal, vertical and both.
...
Before this commit, do this:
c.maximize_hoizontal = true
c.maximize = true
c.maximize = false
assert(c.maximize_hoizontal)
Would not work because the states were not preserved individually.
This commit fixes that. Awesome wont be confused about it's own
state anymore.
This may seem pointless, but when it come to undoing these
maximizations, it was ambiguous.
2017-02-07 11:12:42 -05:00
Emmanuel Lepage Vallee
3b1599bd99
maximize: Stop doing it in 2 operations.
...
Before 4.0, maximizing could only be done in 2 operations.
4.0 add an unified way, but kept doing 2 operations. The old
Lua EWMH code to serialize the 2 operations was dropped when
the codepath was simplified and replaced by a generic version
in awful.placement. However this version never implemented
combining multiple mementos into 1.
This commit unify the maximize C code, drop the ugly macro
template and actually fixes a couple more issues that were
caused because request::geometry was sent twice.
2017-02-07 11:12:40 -05:00
Emmanuel Lepage Vallee
51ddb5639e
mouse: Handle `maximized` client like `fullscreen` ones.
...
There is already a way to prevent them from moving them, but the
next few commits will remove it. There is no reasons to handle
this differently from fullscreen clients.
2017-02-07 11:12:40 -05:00
Yauhen Kirylau
c1cd968803
import vim hotkeys from user config, not hotkeys_popup module ( #1432 )
2017-02-07 13:50:52 +01:00
actionless
3cc613fa20
test(awful: hotkeys_popup): add a minimal test
2017-02-05 21:32:43 +01:00
Uli Schlachter
130acf1c00
Fix client shape handling
...
The functions awful.client.shape.update.bounding and .clip handle both
the client's shape and the shape set by Lua. However,
awful.client.shape.update.all only handles the shape set by Lua and
ignores the client's own shape. This can easily be noticed with xeyes.
When update.all ran last and you move around xeyes, the wallpaper behind
it is moved along, because it is not actually outside of the window.
Fix this by partly reverting 1a5f6b7ad2
and having update.all just
call the other two functions again.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-02-04 07:20:56 +01:00
copycat-killer
1a5f6b7ad2
client: Allow clients to have shapes
...
Also fixes awful.client.shape docs
Closes #1507
2017-02-03 17:48:28 -05:00
Emmanuel Lepage Vallée
cbd22eea50
Merge pull request #1475 from psychon/input-shape-support
...
Input shape support
2017-02-03 12:25:56 -05:00
Uli Schlachter
aaea976108
layoutbox: Update when a tag's screen changes ( #1505 )
...
In theory it would be enough to only update the old and new screen of
the tag whose screen changed. However, we cannot easily get the old
screen, so just update all layoutboxes.
Fixes: https://github.com/awesomeWM/awesome/issues/1503
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-02-02 22:45:33 +01:00
getzze
c0c083bf7d
hotkeys_popup: add custom keys to existing groups ( #1504 )
2017-02-02 22:44:24 +01:00
Kevin Zander
e1aacfaa22
awful.wibar: move wibar:remove() call outside of loop over all wiboxes ( #1501 )
...
Removing a wibar mid-loop will corrupt the indexing of the for loop and can
cause other wibars from being removed.
2017-02-02 22:42:20 +01:00
Emmanuel Lepage Vallée
5439c34723
Merge pull request #1513 from Elv13/merge_copycat
...
object/client.c: added position and size properties
2017-02-02 13:29:42 -05:00
Luke Bonham
ff47b0d0c4
object/client.c: added position and size properties
...
added client signals connection
added comments doc
2017-02-02 13:09:03 -05:00
actionless
79a60b3009
fix(awful: key): clone table with user data
...
closes #1401
fix(tests: awesomerc): use `awful.key.execute` instead of local helper function
2017-01-30 18:19:24 +01:00
Emmanuel Lepage Vallée
a1a5e18b62
Merge pull request #1483 from blueyed/rules-remove-duplicate-placement
...
rules: remove duplicate handling of placement props
2017-01-28 21:55:13 -05:00
Holger Schurig
bf2c1993db
doc: fix signals ( #1455 )
...
- rule reordering was mentioned twice in the NEWS
- fix all shown luadoc errors
- add missing descriptions for signals in module "awesome"
2017-01-28 15:03:56 +01:00
Daniel Hahler
b43918613a
rules: remove duplicate handling of placement props
...
Fixes https://github.com/awesomeWM/awesome/issues/1481 .
2017-01-27 18:00:19 +01:00
Uli Schlachter
df8346ceae
Merge branch 'export-paths' of https://github.com/psychon/awesome
2017-01-27 17:36:55 +01:00
Uli Schlachter
47d69e7824
Update docs for shape_input
...
I grepped for shape_clip and edited places that needed editing.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-01-26 11:15:28 +01:00
Alexander Gehrke
e2edabb8b1
ewhm: fix some transient windows not being movable to other screens ( #1406 ) ( #1452 )
2017-01-25 12:11:11 +01:00
Uli Schlachter
288e44596f
Export build-time paths as entries on awesome
...
This removes some @EXPANSIONS@ from Lua files and removes a hack that
was needed. All is better now! :-)
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-01-25 09:41:11 +01:00
Daniel Hahler
90bbcf1903
awful.tag: handle invalid client in delayed_call ( #1372 )
...
A short-lived client (e.g. `urxvt -e false`) might be invalid already
when the delayed callback is called.
2017-01-23 22:53:01 +01:00
Yauhen Kirylau
f9975f763c
Avoid cyclic dependency between awful and menubar ( #1433 )
2017-01-23 22:51:41 +01:00
Emmanuel Lepage Vallée
193c73353f
Merge pull request #1426 from SammysHP/prompt-customization
...
prompt: Make awful.widget.prompt themeable
2017-01-23 07:27:58 -05:00
SammysHP
37f0b7e3bf
prompt: Make awful.widget.prompt themeable
...
Adds new optional properties to the theme:
prompt_fg
prompt_bg
prompt_fg_cursor
prompt_bg_cursor
prompt_font
2017-01-23 13:15:09 +01:00
SammysHP
9553f616c0
doc: fix typo ( #1430 )
2017-01-22 21:57:26 +01:00
Emmanuel Lepage Vallee
7faac6b59f
doc: Fix awful.tag.attached_connect_signal
2017-01-22 09:31:56 -05:00
Emmanuel Lepage Vallée
e0bce2936f
Merge pull request #1329 from Elv13/prompt_refactor
...
Prompt documentation & fixes
2017-01-22 09:14:00 -05:00
Emmanuel Lepage Vallee
2229d7aeed
doc: Fix a copy/paste error in the master_count doc
2017-01-22 09:00:53 -05:00
Emmanuel Lepage Vallee
1c4b991e33
doc: Better document the prompt hooks
2017-01-22 01:14:20 -05:00
Emmanuel Lepage Vallee
a6161d1229
tests: Test the prompt highligher
2017-01-22 01:14:20 -05:00
Emmanuel Lepage Vallee
2472201b71
prompt: Add command highlighter support.
2017-01-20 01:09:30 -05:00
Emmanuel Lepage Vallee
39f0a1c95c
doc: Document the prompt callbacks
2017-01-20 01:09:30 -05:00
Emmanuel Lepage Vallee
928f7b04b4
prompt: Add a key filter example
2017-01-20 01:09:30 -05:00
Emmanuel Lepage Vallee
f6cce940a5
prompt: Add a Vi like prompt parser
...
Otherwise hooks that modify the command are not documented well
enough.
2017-01-20 01:09:29 -05:00
Emmanuel Lepage Vallee
4934697817
prompt: Add a more complete hook example
2017-01-20 01:09:29 -05:00
Emmanuel Lepage Vallee
42205220dd
prompt: Move the keybindings section to the header
...
This is part of a longer series of commit to expand the
documentation.
2017-01-20 01:09:29 -05:00
Emmanuel Lepage Vallee
53d32d362a
prompt: Unit test the example
2017-01-20 01:09:29 -05:00
Emmanuel Lepage Vallee
856244723c
prompt: Restore the ability to use hooks without exiting
...
It was in an earlier version of the patchset but was lost at
some point.
2017-01-20 00:22:49 -05:00
Yauhen Kirylau
bfb3534955
doc(awful: hotkeys_popup): change variable names to fix ldoc result and add one missing docstring ( #1396 )
2017-01-17 10:13:26 +01:00
Emmanuel Lepage Vallée
a9e8cc3dab
Merge pull request #1404 from Veratil/tasklist-spacing-fix
...
Tasklist spacing fix + taglist spacing doc addition
2017-01-16 23:39:53 -05:00
Kevin Zander
44e0ea5681
taglist_shape_border_width_focus and taglist_shape_border_color_focus are not put into the correct variables
2017-01-16 11:18:47 -06:00
Kevin Zander
74b5ac72da
Fix incorrect variable lookup for theme.tasklist_bg_image_*
2017-01-16 02:39:01 -06:00
Kevin Zander
56a2e98896
Add doc for taglist_spacing
2017-01-16 01:12:12 -06:00
Kevin Zander
c3b565faab
Fix theme lookup of tasklist_spacing; fix doc typo
2017-01-16 01:11:42 -06:00
Yauhen Kirylau
f69769f7ba
fix(awful: hotkeys_popup): use new widget api in pagination ( #1384 )
2017-01-11 13:12:38 +01:00
Daniel Hahler
83a118e421
awful.util.{get_themes_dir,get_awesome_icon_dir}: support env
...
Look at environment variables AWESOME_THEMES_PATH and AWESOME_ICON_PATH,
which allows to override this in the integration test runner.
2017-01-08 20:34:13 +01:00
rob
703b11182c
taglist: added volatile tag theme variables
2017-01-07 21:21:46 -07:00
Emmanuel Lepage Vallee
cefa14d1bd
layout: Fix the magnifier layout
...
It was broken since the dynamic screen support was merged.
Fix #1338
2017-01-04 04:56:54 -05:00
Daniel Hahler
4b9e8e232d
Merge pull request #1341 from psychon/modeline
...
Lots of fun with vim modelines
2017-01-02 19:56:06 +01:00
Uli Schlachter
2b79165622
Add missing vim modelines in lib/
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-12-31 14:07:13 +01:00
Daniel Hahler
af961e974c
doc: improve client.dockable ( #1336 )
2016-12-31 00:40:17 +01:00
Uli Schlachter
e7b4898a7e
Fix typo: Remove double tasklist_tasklist_ ( #1323 )
2016-12-28 22:25:23 +01:00
Daniel Hahler
d13f465374
awful.screen: add stacked arg to some functions ( #1301 )
...
Fixes https://github.com/awesomeWM/awesome/issues/1300
2016-12-28 12:41:59 +01:00
Uli Schlachter
bdb7e90b74
Fix classmod in awful.widget.keyboardlayout ( #1314 )
...
Fixes: https://github.com/awesomeWM/awesome/issues/1313
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-12-27 21:38:20 +01:00
Emmanuel Lepage Vallee
2b462cb2e3
doc: Document the tag `master_fill_policy`
2016-12-21 11:41:30 -05:00
Emmanuel Lepage Vallée
8935ed2a30
Remove traces of the old URL ( #1280 )
...
**WARNING**: This breaks the API
2016-12-21 02:03:03 +01:00
Emmanuel Lepage Vallee
5ff29bb00e
doc: Document how to open a document using `awful.spawn`
2016-12-16 12:38:33 -05:00
Emmanuel Lepage Vallee
1efbb57049
doc: Add a little awful.spawn async tutorial
2016-12-16 12:38:33 -05:00
Emmanuel Lepage Vallee
7f1933f99c
doc: Document when spawning with a shell is needed
2016-12-16 12:38:33 -05:00
Emmanuel Lepage Vallee
b9dbc79308
doc: Add more `awful.spawn` documentation
...
It was lacking
2016-12-16 12:38:33 -05:00
Emmanuel Lepage Vallée
65ec764416
Merge pull request #1267 from Elv13/fix_rules_screen_mismatch
...
Fix more rules screen mismatch
2016-12-12 13:07:18 -05:00
Emmanuel Lepage Vallee
4b61dbba82
rules.tags: Behave like rules.tag
...
One did try to match tag by name and the other didn't.
While at it, also ensure that the screen is consistent.
2016-12-12 11:49:11 -05:00
Emmanuel Lepage Vallée
f22c067efd
Merge pull request #1265 from Elv13/improve_deprecation
...
Improve deprecation messages
2016-12-12 10:26:39 -05:00
Emmanuel Lepage Vallee
c96aa9866e
rules.tag: Prevent a screen mismatch
...
As c:tags() doesn't (cannot) check for screen mismatch, then it
has to be done.
This is a follow up of 6f7019b2d0
, see #1236 .
2016-12-11 22:50:00 -05:00
Emmanuel Lepage Vallee
828d6f2cd9
utils: Better class deprecation warnings
...
Fix #1228
2016-12-11 14:54:12 -05:00
Emmanuel Lepage Vallee
e239492696
utils: Add optional awful.util.deprecate options.
...
For now, only a `raw` option is implemented.
2016-12-11 14:51:33 -05:00
Emmanuel Lepage Vallee
52fbf49309
prompt: Fix indentation
...
There was tabs mixed with spaces
2016-12-11 14:39:08 -05:00
Emmanuel Lepage Vallee
73afe0e954
doc: Add a prompt example.
2016-12-11 14:35:20 -05:00
Emmanuel Lepage Vallee
0e1c193450
prompt: Make exe_callback optional
...
The menubar already bypass it using keypress listener. Having an
empty callback is ugly.
Fixes #1180
2016-12-11 14:19:25 -05:00
Emmanuel Lepage Vallee
1eeaf6b9c9
doc: Add a missing awful.rule field
2016-12-11 00:10:39 -05:00
Emmanuel Lepage Vallee
5aa38f6fe5
doc: Add a missing ewmh handler documentation
2016-12-11 00:10:39 -05:00
Emmanuel Lepage Vallée
548b15e883
doc: Document the client layouts. ( #1247 )
...
This commit doesn't add any useful documentation, but adds
previously hidden documentation variables. It can be the basis
of a better layout documentation.
Fix #1246
2016-12-10 02:24:22 +01:00
Uli Schlachter
9a5092226a
awful.wibox.stretch: Spell out full replacement
...
The function that is documented as awful.wibox.stretch is deprecated,
because it was removed (that's not a deprecation, is it?!?). For the
replacement, we used "@see stretch". However, LDoc was randomly
resolving this reference to awful.wibar.stretch (good) or
awful.wibox.stretch (bad; the see points to the element where it
appears).
Fix this by spelling out the "full name" of the function in the @see.
Related-to: https://github.com/awesomeWM/awesome/issues/834
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-12-09 18:03:03 +01:00
Uli Schlachter
480b8b6477
Remove @see tag.swap on awful.tag.object.swap
...
The only other swap function is awful.tag.swap and that one is
deprecated. Thus, it should not be linked to.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-12-09 18:00:40 +01:00
Emmanuel Lepage Vallée
883b5934c0
Merge pull request #1236 from Elv13/fix_new_tag_rule
...
rules.new_tag: Fix when the tag screen doesn't match the client
2016-12-01 19:53:17 -05:00
Michael Beaumont
4cb11b8754
Fix awful.tag.add ignoring props.index ( #1245 )
2016-12-01 22:04:57 +01:00
Uli Schlachter
f9cdc98c73
Fix spawn callbacks
...
Spawn callbacks were never invoked when no startup-notification-rules were
given. This commit fixes the code so that "startup done" callbacks are also
called when no rules were given.
Fixes: https://github.com/awesomeWM/awesome/issues/1218
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-12-01 15:32:21 +01:00
MoreThanOneAnimal
51bbb53b30
Add references to gears.color in documentation.
2016-11-28 20:07:29 -08:00
Emmanuel Lepage Vallee
6f7019b2d0
rules.new_tag: Fix when the tag screen doesn't match the client
...
Also add the documented `props` argument to the high priority
rules.
2016-11-27 04:57:35 -05:00
Daniel Hahler
fc13b1b4eb
doc: s/Wether/Whether/
2016-11-22 02:40:15 +01:00
Daniel Hahler
71259748d2
Minor doc and code style fixes
...
Closes https://github.com/awesomeWM/awesome/pull/1215 .
2016-11-21 22:38:40 +01:00
Daniel Hahler
aeab2a70e9
Fix whitespace warnings reported by luacheck ( #1229 )
2016-11-21 22:38:23 +01:00
actionless
3fea2db8c5
feat(awful: hotkeys_popup): add possibility to create new widget instance
2016-11-21 13:44:20 +01:00
MoreThanOneAnimal
61d4f4310a
Use unmodified command for the command history.
...
Closes awesomeWM/awesome#1104 .
2016-11-15 23:25:31 -08:00
Emmanuel Lepage Vallee
2d5a1798af
doc: Document tasklist_plain_task_name
...
It was missing.
2016-11-15 16:33:20 -05:00
Daniel Hahler
d0dc447dd5
Emit screen::arrange signal outside of arrange_lock ( #1191 )
...
This will handle changes in the layout recursively, e.g. when changing
the border_width of clients.
Ref: https://github.com/awesomeWM/awesome/issues/171#issuecomment-256146578
2016-10-26 16:20:34 +02:00
Uli Schlachter
d07fc822a1
Fix awful.tag.object.get_gap_single_client ( #1190 )
...
The usual "a or b"-trick to simulate C's ?:-operator does not work when
"false" is a valid value. Fix the code to handle this correctly and add
a short unit test which would have caught this problem.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-10-26 01:43:45 +02:00