Commit Graph

266 Commits

Author SHA1 Message Date
Emmanuel Lepage Vallee 9f81638643 Add a font property to the item 2018-11-10 21:22:38 -05:00
Emmanuel Lepage Vallee 7d8b5a0542 Disable monkey patching the grid, its merged 2018-10-12 15:28:34 -04:00
Emmanuel Lepage Vallée ac9bab0655
Merge pull request #48 from deficient/fix-dynamic-submenu
Fix dynamic submenus staying open
2018-01-10 14:40:28 -05:00
Emmanuel Lepage Vallée 6c168df266
Fix a typo
Thanks to @jan0x6c
2017-12-13 20:38:34 -05:00
Thomas Gläßle 4980ea9a02 Fix dynamic submenus staying open
Resolves #47
2017-10-11 14:47:39 +02:00
Emmanuel Lepage Vallée 057f9a626a Merge pull request #45 from deficient/master
Update description of set_menu() signature in README
2017-10-10 22:32:28 +02:00
Thomas Gläßle b85102dc9e Fix description of set_menu() signature in README 2017-10-10 14:08:12 +02:00
Emmanuel Lepage Vallée 6c98323a1d Merge pull request #43 from bryant1410/master
Fix broken headings in Markdown files
2017-04-18 01:49:23 -04:00
Santiago Castro e228dd6e7c Fix broken Markdown headings 2017-04-18 00:56:42 -03:00
Emmanuel Lepage Vallee 9628919281 alttab: Use c:jump_to()
It may use the wrong tag, but is otherwise more stable than the
current solution.
2017-01-04 03:35:46 -05:00
Emmanuel Lepage Vallee 393b23fbd6 Fix last commit 2016-12-26 16:29:04 -05:00
Emmanuel Lepage Vallee f794685214 Update the readme 2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 8412b45659 Various stashed changes
Remove some merged modules
2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee b1a839aafe dock: Set the right window type
Fix a Compton issue when using transparent backgrounds.
2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee eb8f807867 taglist: Use Awesome official tag index.
No more hacks, all it caused was hidding issues deeper and having
asserts() after a few weeks of runtime.

Awesome tag.index is still buggy, but I will fix it and write the
proper tests so it stay fixed. No more hacks.
2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 15ee0a3d70 alttab: Show on the right screen. 2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee abd3d55554 box: Set the screen if specified in the arguments
The old logic had some dark tricks to set this, but here is a clean
solution.
2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 5eab124677 context: Add screen property 2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee e29771fa48 base: Fix broken move logic
Sometime I wonder WTF I was on when I wrote some parts or Radical...

I guess I can call it university stress...

Note that this will probably cause a bunch of regressions because
some other code expected the garbage I was creating.
2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 0e00d45cd4 style.arrow: Add custom radius support 2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee a58ac33afb smart_wibox: Do not call set_position when the area reamin the same.
This is a band-aid on top of deeper issues when layout_changed is
wrongly called. This should prevent menus moving in random places
when the mouse is moved. Note that this commit wont stop them from
moving when their size really change.

This is harder to fix as all the "outside of the workarea" checks
still need to be performed and in many cases, such as async loaded
menus, the move itself is really necessary while in others it is
unwanted.
2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 3488622ac3 widgets: Add a slider widgets
Requires a recent Awesome version.
2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 1a02eb0b93 infoshape: Misc fixes 2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee b0f5c663e6 common: Re-use icon_per_state 2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 26a6c05d5e dock: Do not use ontop for persistent docks 2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee ddadf6bd3e grid: Fix some bugs 2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee f61feaff46 dock: Use floor instead of ceil for the optimal size
In case of a "0" margin, this caused the dock to be taller than
the workarea.
2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 687e21dcdc dock: Track workarea changes 2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 0618a8d18c item.layout: Use the checkbox widget 2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 7600e4b888 widget: Rewrite the checkbox as a 'real' widget
It was previously an image used by imagebox. This doesn't
support multi DPI and was an artefact of Awesome 3.4.
2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 9be99465f2 grid: Use the 'real' grid layout 2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee 30084a84d5 widgets: Add a grid layout [WIP]
In a quest to get rid of all fit/draw monkeypatching, this
commit add a proper grid layout. It is currently as good
as the old layout/grid.lua hack, but not "correct" used outside
of Radical menus (swap/insert/remove are also broken) and it
fail to handle many corner case.
2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee b850b334ba layoutmenu: Fix a porting error 2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee 2e9e7b1851 sub-menu: Fix horizontal item arrow 2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee 1c34c56d0b base: Remove setup_drawable callback
As this was the last step in the base constructor, it could be
done in each menu type without the callback and extra code.

The only reason this existed was to allow menu "sub classes"
that override this function. However, since this was rewritten,
it was no longer used, so for the sake of simplicity, I remove
this feature.
2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee 84f19c51a1 scroll: Fix scroll-up 2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee 5c05c431e7 piechart: Drop cache mechanism and update indentation 2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee dfa69714f5 piechart: Fix cache and update API 2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee 1ca9bb2f26 fkey: Rewrite (with some more sanity) 2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee eaa389bd5f widgets: Add text widget
Automatic text scaling to fill an area
2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee 825ff024ef More bug fixes
This is a step forward to stabilize Radical again. Most of impl/ and widgets/
code is still a mess, but the other modules slowly start to be maintainable
again. The road is still long before the Radical code is good enough to go
into Awesome. It will get there, eventually.
2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee f3124b761d quality: Fix more luacheck warnings
And remove unmaintained and broken files
2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee 2d0a957506 quality: Begin to fix luacheck warnings 2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee 6244ed7c26 api: Update file to match new upstream Awesome APIs
Also has some bug fixes mixed in the patch.

The Radical placement API is now fully upstreamed.
2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee 7506a8f49d base: Fix scroll, filter and embedded menus 2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee ffd1e8003a base: Fix item filtering 2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee 1310815b6e alttab: Fix the top row 2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee 9649f04314 Fix the fkey widget 2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee aeb9aeb1b8 impl: Adapt to new upstream API changes
* The screen API was broken
 * Many awful.tag, client and screen methods were deprecated
2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee e18f664de0 placement: Add more methods 2016-12-25 21:59:37 -05:00