Commit Graph

9299 Commits

Author SHA1 Message Date
Emmanuel Lepage Vallée 7f0e2e6bbf
Merge pull request #2509 from Elv13/xmas_2k18_3
Fix some tag.layouts corner cases
2019-01-24 08:50:41 -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 8757e15d30 gears: Add `find_keys` and `find_first_key` to `gears.table`.
Fills a small gap between keys_filters and hasitem.
2019-01-24 06:31:57 -05:00
mergify[bot] c1f0013699
Merge pull request #2603 from Veratil/add-menubar-science-category
Add Science category to menubar menu generation categories table.
2019-01-21 22:25:18 +00:00
Kevin Zander 012f130738 Add Science category to menubar menu generation categories table. Fixes #2602 2019-01-21 11:58:44 -06:00
mergify[bot] 98985f67be
Merge pull request #2601 from Sorky/patch-3
menubar.utils.lua - remove "function is_format_supported" by making i…
2019-01-21 14:29:04 +00:00
Sorky 9927b7a88d squash 2019-01-21 21:37:45 +11:00
mergify[bot] 3fbb96ecac
Merge pull request #2595 from blueyed/sloppy
awesomerc.lua: fix sloppy focus: do not raise
2019-01-19 12:26:37 +00:00
Daniel Hahler 81a0a8cc48 awesomerc.lua: fix sloppy focus: do not raise
Fixes https://github.com/awesomeWM/awesome/issues/2594.
2019-01-19 09:48:01 +01:00
mergify[bot] 8fe06f95d0
Merge pull request #2567 from blueyed/cmake-args
Makefile: run CMake with CMAKE_ARGS defined
2019-01-15 01:11:24 +00:00
mergify[bot] 86ab272045
Merge pull request #2589 from psychon/theme_path
Make beautiful.theme_path actually work again
2019-01-14 13:06:25 +00:00
Uli Schlachter 3145272292 beautiful.init(): reset theme_path if called with a table
Signed-off-by: Uli Schlachter <psychon@znc.in>
2019-01-14 09:18:58 +01:00
Uli Schlachter 69a0de3f03 Make beautiful.theme_path actually work
Commit ac8af66005 added beautiful.theme_path, which is used to save the
directory that contains the theme file that was loaded. Just two months
later, commit ca12473584 broke this code by adding a __newindex
metamethod. This caused the assignment to beautiful.theme_path to be
redirected to the theme. However, the theme is immediately replaced by
beautiful.init() after setting up the theme_path, so this assignment got
lost.

Fix this by using rawset() to bypass the metamethod.

Fixes: https://github.com/awesomeWM/awesome/issues/2573
Signed-off-by: Uli Schlachter <psychon@znc.in>
2019-01-14 09:18:40 +01:00
Emmanuel Lepage Vallée 708e522d56
Merge pull request #2586 from Sorky/patch-3
awesomerc.lua: show hotkeys popup on mouse screen.   fixes: #2583,   fixes: #2585
2019-01-14 00:29:02 -05:00
Emmanuel Lepage Vallee 4b76ca9d38 doc: Fix awful.hotkeys_popup.show_help formatting. 2019-01-13 23:57:04 -05:00
Sorky fec7aaa569 Unify the myawesomemenu style 2019-01-13 23:52:21 -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
Daniel Hahler 415c92a08a squash! Makefile: run CMake with CMAKE_ARGS defined
Only if specified on command line.
2019-01-12 15:41:02 +01:00
Daniel Hahler 1535934ef9 Merge remote-tracking branch 'origin/master' into cmake-args 2019-01-12 15:37:59 +01:00
Daniel Hahler c20573e6dd
Makefile: keep cmake-build as default target (#2579)
Fixes https://github.com/awesomeWM/awesome/issues/2576.
2019-01-12 11:46:23 +01:00
Daniel Hahler d2fd15cf99
cmake: pass DO_COVERAGE=1 in env for tests/run.sh (#2575)
`$DO_COVERAGE` is used in tests/run.sh, and should be set with the
`DO_COVERAGE` CMake option.
2019-01-11 17:04:23 +01:00
Daniel Hahler 0b36da2730
Makefile: get rid of cmake-build (#2547)
* Makefile: all: only depend on cmake-build

Previously `make` would first run `cmake-build` (`make` in `build/`),
and then run `make -C build awesome` afterwards again (which gets built
by the first step already).

* Makefile: get rid of cmake-build

* Travis: testing previous commits: make distclean

Otherwise it might fail due to permission errors for existing files:

https://travis-ci.org/awesomeWM/awesome/jobs/476612117#L2785

    -- Build files have been written to: /home/travis/build/awesomeWM/awesome/build
    [  1%] Generating manpages/man1/awesome.1
    [  2%] Generating manpages/man1/awesome.1.gz
    /bin/sh: 1: cannot create /home/travis/build/awesomeWM/awesome/build/manpages/man1/awesome.1.gz: Permission denied
    make[3]: *** [manpages/man1/awesome.1.gz] Error 2
    make[2]: *** [CMakeFiles/man.dir/all] Error 2
    make[1]: *** [all] Error 2
    make: *** [cmake-build] Error 2
2019-01-11 17:04:04 +01:00
Daniel Hahler d00d3d4702
cmake: improve check target(s) deps (#2571)
* cmake: use add_custom_target/add_dependencies instead of CHECK_TARGETS

This makes it fail in case of errors explicitly.  Previously appending
to CHECK_TARGETS in tests/examples/CMakeLists.txt was silently ignored.

* cmake: check: depend on check-unit always

Without busted this will print a message only, but that is good to have.
(I was confused why "check" would not depend on "check-unit" when
looking at the generated Makefile (which was caused due to some luarocks
environment being active without busted))
2019-01-11 17:03:32 +01:00
Daniel Hahler 3804040dbe
Travis: coverage: gcov: process .gnco separately (#2574)
Also uses consistent flags with codecov, i.e. lua53 also with gcov / `#c_code`.
2019-01-10 23:06:54 +01:00
Daniel Hahler f75dacb504
awesome-client: handle multiple args (#2551)
`awesome-client 'return 1' 'return 2'` would only run the first command.

This also fixes other issues reported by shellcheck, and uses `read`
directly to allow `shellcheck` to parse that construct correctly.
2019-01-10 19:10:11 +01:00
Daniel Hahler ac34a687c0
cmake: clarify comment for check-unit with not found busted (#2566) 2019-01-10 19:09:40 +01:00
Daniel Hahler 0acaaf6863
Travis: coverage: report check-themes with separate flag (#2570)
This makes sense in general (every check target should get its own
flag), and might help with tracking down unexpected coverage changes
(although those appear to be related to the C code only (gcov)).
2019-01-10 19:08:36 +01:00
Daniel Hahler b392e2ce74
cmake: remove check-unit-coverage (#2568)
Just configure `check-unit` to use `--coverage` with `busted` with
`DO_COVERAGE=1`.

I got confused why `check-unit` would not generate coverage.
This keeps it in line with other targets that generate coverage when
used with the same name.
2019-01-10 13:30:58 +01:00
Daniel Hahler 7e68305f98
Travis: update LuaRocks: 2.4.2 => 3.0.4 (#2569) 2019-01-10 10:58:11 +01:00
Daniel Hahler 2b3707ccfc
Travis: codecov: use -f with luacov output (#2563)
- do not use `-c` to remove discovered file
- configure path for luacov reportfile to also reside in build directory
2019-01-10 10:56:39 +01:00
Daniel Hahler b67e0a123c
Travis: use Ubuntu Xenial image (#2565)
This has lua5.3 already.
2019-01-10 10:55:49 +01:00
Daniel Hahler 39cc36a979 Makefile: run CMake with CMAKE_ARGS defined
This ensures to re-run CMake when using something like:

> CMAKE_ARGS="-DSTRICT_TESTS=true -DDO_COVERAGE=1 make check-unit
2019-01-09 21:20:51 +01:00
Aire-One a01669693e layout.manual: Implement the `:insert()` method. (#2557)
It was documented but not implemented. It is necessary when the
"Z index" needs to be manually specified.
2019-01-09 00:31:14 -05:00
mergify[bot] ed7c243c03
Merge pull request #2552 from Elv13/fix_tags_doc
doc: Fix a copy/paste mistake in the screen module
2019-01-05 17:06:43 +00: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] dab2732bc3
Merge pull request #2537 from blueyed/fix-treturn
doc: fix `@treturn` usage with index_theme:get_per_directory_keys
2019-01-05 09:00:06 +00:00
mergify[bot] e647166ad6
Merge pull request #2546 from blueyed/man
Fix warning with de man page
2019-01-05 03:51:41 +00:00
mergify[bot] a2b0b6a6a1
Merge pull request #2538 from blueyed/doc-gtable
doc: revisit gears.table
2019-01-05 00:21:26 +00:00
Emmanuel Lepage Vallée 50178324d1
Merge pull request #2544 from blueyed/ldoc-title
ldoc: use custom ldoc.ltp for improved HTML title
2019-01-04 19:18:10 -05:00
mergify[bot] a4b9d2c1fd
Merge pull request #2539 from blueyed/test-split
tests: add basic tests for gears.string.split
2019-01-04 22:57:27 +00:00
mergify[bot] ded7950c6d
Merge pull request #2536 from blueyed/test
tests/run.sh: fix handling of test args
2019-01-04 22:56:46 +00:00
mergify[bot] 477c322bc6
Merge pull request #2535 from blueyed/kill
awesome.kill: use luaL_checknumber
2019-01-04 22:32:17 +00:00
Daniel Hahler aae9b25457 ldoc.ltp: improve HTML title 2019-01-04 22:39:28 +01:00
Daniel Hahler 6792415cef ldoc: prepare for custom ldoc.ltp
ldoc.ltp is copied from ldoc (ldoc/html/ldoc_ltp.lua).
2019-01-04 22:39:28 +01:00
Daniel Hahler 7e5e3a8b81 manpages/awesome.1.de.txt: fix headings
Not clear if needed, but fixes:

> asciidoctor: WARNING: awesome.1.de.txt: line 10: unterminated listing
2019-01-04 16:16:45 +01:00
Daniel Hahler 6be0f39454 cmake: man: use txtfile directly
This helps with warnings:

> [ 94%] Generating manpages/de/man1/awesome.1
> asciidoctor: WARNING: awesome.1.de.txt: line 10: unterminated listing block
> [ 94%] Generating manpages/de/man1/awesome.1.gz
> …
> [ 98%] Built target man
2019-01-04 16:15:44 +01:00
Daniel Hahler a732301306 tests: add basic tests for gears.string.split 2019-01-03 18:33:34 +01:00