Yauhen Kirylau
e332e2d868
fix(menubar): apply both menu bg and fg, not only bg ( #2372 )
2018-08-26 12:35:14 -04:00
Uli Schlachter
c8d6b7d28a
Use get_cache_dir() where appropriate
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2018-03-11 16:08:07 +01:00
Uli Schlachter
74a6cbedce
Fix menubar screen handling
...
Running test-menubar.lua just failed for me locally. The reason was that
the textbox was indexing a nil value when doing 's.dpi'.
This commit fixes the menubar so that its optional screen arguments are
really handled correctly. In fact, a default screen is now chosen way
earlier than before, so that no nil values are used as screens later on.
In other news: I guess test-menubar.lua is not run on any of our Travis
targets...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-10-08 14:53:58 +02:00
Daniel Hahler
31e25dc6a5
Cleanup usages/patching of awful.util.deprecate ( #1966 )
2017-08-10 12:18:54 +02:00
Uli Schlachter
f1b78a6ff2
menubar: assert() that io.open() succeeds
...
Improves-the-error-for: https://github.com/awesomeWM/awesome/issues/1663
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-04-08 11:02:01 +02:00
Uli Schlachter
3f2bcfdb97
Fix misuse of @deprecated tag
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-03-18 10:43:55 +01:00
Emmanuel Lepage Vallée
2c30991579
Merge pull request #1620 from psychon/menubar-remove-get2
...
Deprecate menubar.get()
2017-03-16 16:40:23 -04:00
Kevin Zander
45dadde0dd
Move filesystem functions out of awful.util into new gears.filesystem
...
Update awful.util filesystem function calls to gears.filesystem function calls
Rename getdir to get_dir for consistency
2017-03-15 13:46:33 -05:00
Kevin Zander
2f105eac86
Move string functions out of awful.util into new gears.string ( #1584 )
...
Update deprecated awful.util string function calls to gears.string calls
2017-03-11 18:57:32 -05:00
Kevin Zander
0066257a59
Move ensure_pango_color out of awful.util into gears.color
...
Update deprecated awful.util.ensure_pango_color calls to gears.color.ensure_pango_color calls
2017-03-08 15:28:48 -06:00
Uli Schlachter
6f803cf3b3
Fix code using awful.util.round
...
This gets rid of lots of deprecation warnings
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-03-06 17:11:05 +01:00
Kevin Zander
3f6df8ddee
Fix Luacheck 0.19.0 release Travis breaks
2017-03-03 16:41:12 -06:00
Uli Schlachter
232c5a014a
menubar.show(): Remove duplicate call to menubar.refresh()
...
This changes a line of code that was added in the previous commit.
Previously, when menubar.cache_entries was set to false,
menubar.refresh() was called twice.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-03-03 18:46:55 +01:00
Uli Schlachter
67b12579d9
Deprecate menubar.get()
...
The function seems useless and its documentation is wrong. It does not
return a wibox, but a widget. Also, the widget cannot really be used on
its own since it depends on the size of the wibox.
So menubar.get() and its wrapper through the metatable __call should
just be removed. Until then, the needed initialisation code is moved
around a bit and the function is deprecated.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-03-03 18:45:47 +01:00
copycat-killer
ad72d204c9
menubar.init: menulist_update doc fixed
2017-02-15 12:38:46 +01:00
actionless
20c132fa38
feat(menubar): cache count_table reading
2017-02-11 16:58:57 +01:00
actionless
0089b5d7c7
refactor(menubar): simplify file handling for count_table
2017-02-11 16:58:57 +01:00
actionless
978889e739
fix(menubar): close count_file after opening
...
closes #1548
2017-02-11 16:58:57 +01:00
Yauhen Kirylau
439d0c804c
fix(menubar): reset search query when menubar closes ( #1553 )
...
* fix(menubar): reset search query when menubar closes
* refactor(menubar): remove redundant argument for menulist_update()
2017-02-11 01:16:57 +01:00
actionless
4c3b63009c
fix(menubar): use current query after refreshing entries list
...
closes #1421
2017-02-05 22:06:29 +01:00
Uli Schlachter
dadf8463bd
menubar: Fix refresh without show
...
When menubar.refresh() is called, it tries to update the menubar widget.
The call chain looks like this: menulist_update -> common.list_update ->
get_current_page. get_current_page then tries to query information about
the size of the menubar.
Since there is not much point in this, just skip the whole callback in
this case.
Side note: What is the point of menubar.get()? It seems quite useless to
me.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-01-02 17:23:20 +01:00
Uli Schlachter
7f3ff5f26f
menubar: Fix hide()
...
When hide() was called without any calls to shown() before, an error
would occur.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-01-02 17:21:10 +01:00
Uli Schlachter
68f0883a44
menubar: Refactor initialisation
...
No functional changes intended. I just like things more like this.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-01-02 17:20:41 +01: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
Haochen Tong
a6af703c5d
menubar: Fix missing exe_callback in args table ( #1173 )
...
Signed-off-by: Haochen Tong <i@hexchain.org>
2016-10-18 12:40:47 +08:00
Emmanuel Lepage Vallee
07f3a178fa
prompt: Fix 2 deprecation warnings
...
An oversaw in a previous commit introduced deprecation warnings
on the default config.
2016-10-12 01:53:53 -04:00
Uli Schlachter
259c4f716f
Remove @release @AWESOME_VERSION@ everywhere ( #1157 )
...
It does not provide much value. The version number is already known to
ldoc globally in the "description" variable.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-10-09 22:36:20 +02:00
Emmanuel Lepage Vallee
260aeba78b
doc: Fix the menubar fields documentation
2016-09-26 00:40:20 -04:00
Emmanuel Lepage Vallee
4d0c426040
menubar: Do not use the deprecated geometry access
2016-09-11 01:55:33 -04:00
modk
12ea5e2318
menubar: Refactoring and cleanup
2016-09-11 00:32:57 -04:00
modk
1a40333b9e
menubar: Fix entry use count for categories
...
Fix #999
2016-09-11 00:32:47 -04:00
modk
45d555d473
Priority heap to sort menubar entries by execution count ( #879 )
2016-07-09 19:23:36 +02:00
Max
8ff60f034f
Try menu_* colors before regular normal/focus ( #949 )
2016-06-05 17:08:43 +02:00
Uli Schlachter
a1e340d118
Merge branch 'replace-popen-to-async' of https://github.com/actionless/awesome
2016-04-30 09:11:50 +02:00
actionless
4eb80853c2
feat(lib: menubar): replace io.popen to lgi
2016-04-28 17:07:24 +02:00
actionless
b93d6a4b25
fix(lib: menubar): take in account common list padding
2016-03-02 15:47:50 +01:00
Uli Schlachter
d9f4ed9fb6
menubar: Support screen objects
...
This commit makes meanubar accept a screen object everywhere where a screen
index is accepted.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-02-26 18:25:55 +01:00
Uli Schlachter
f2cf4a6385
Fix luacheck warnings in beautiful and menubar
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-02-11 21:55:32 +01:00
Uli Schlachter
1aed092fea
Merge branch 'util-getdir' of https://github.com/psychon/awesome
2016-01-17 15:59:54 +01:00
Uli Schlachter
16994f3b12
Fix API documentation broken in eb8577a424
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-12-22 18:31:48 +01:00
Uli Schlachter
8953218e5c
Use get_cache_dir() instead of getdir("cache") everywhere
...
Just because I like that function more. :-)
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-12-11 18:16:26 +01:00
actionless
eb8577a424
feat(lib: menubar): dpi support in menubar
...
Closes https://github.com/awesomeWM/awesome/pull/580 .
2015-12-10 23:18:43 +01:00
Emmanuel Lepage Vallee
4095eb91a8
Move util.spawn to a new module, add ability to spawn with properties
...
* This commit add a new module to avoid a (4 level) loop dependency
* It is now possible to call awful.spawn() with a table of properties
* awful.rules is used to execute the rules.
* Everything is public to allow alternative workflow modules such as
Tyrannical to use their own callback implementation.
2015-09-29 18:05:56 -04:00
Daniel Hahler
a0f8948c71
menubar: fix height to be rounded
...
Fixes https://github.com/awesomeWM/awesome/issues/414 .
Closes https://github.com/awesomeWM/awesome/pull/432 .
2015-08-31 20:47:22 +02:00
Daniel Hahler
410a6e5bb2
Merge pull request #155 from silverhammermba/pango_color
...
Replace color_strip_alpha with check_pango_color
2015-07-25 23:26:22 +02:00
Daniel Hahler
cbe684efd1
Add awful.screen.focused [FS#1029]
...
This allows to configure / override what gets considered to be the
"focused screen".
Ref: https://awesome.naquadah.org/bugs/index.php?do=details&task_id=1029
Closes https://github.com/awesomeWM/awesome/pull/94 .
2015-07-21 12:51:45 +02:00
Max
d22a65a103
Replace uses of color_strip_alpha with ensure_pango_color, refactor
...
This simplifies the logic a bit since all of the fg/bg colors are
always set when it gets to checking the client state.
2015-07-10 18:11:45 -04:00
Julian Wollrath
6cc7be512c
Remove the *.in from all files.
...
Signed-off-b: Julian Wollrath <jwollrath@web.de>
2015-06-19 22:33:32 +02:00