Daniel Hahler
2bcff5af27
Merge pull request #708 from psychon/less_screen_indicies2
...
Less screen indicies
2016-02-28 22:15:37 +01:00
Daniel Hahler
9205feea5e
menubar: rename utils.parse to utils.parse_desktop_file
2016-02-28 22:14:35 +01:00
Daniel Hahler
25eff81878
menubar: look for .desktop files recursively
...
It was missing apps/entries from /usr/share/applications/kde4.
This patch also makes sure that entries are unique (by Exec/Name).
Closes https://github.com/awesomeWM/awesome/pull/711 .
2016-02-28 22:14:08 +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
3db87c693a
menubar.icon_theme: Don't require("awful")
...
This avoids having to mock half the C API just because all of awful is loaded
needlessly in this unit test and is generally a good idea.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-02-21 16:55:06 +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
actionless
0516203610
feat(lib: awful: hotkeys_popup): widget to show awesome and third-party keybindings
...
Closes https://github.com/awesomeWM/awesome/pull/421 .
2015-12-02 01:02:15 +01:00
dyslesiq
ecf6b55b55
Added value check of required 'Name' entry in .desktop parsing
...
Closes https://github.com/awesomeWM/awesome/pull/574 .
2015-12-01 20:17:21 +01:00
Uli Schlachter
234100ebdf
Fix/silence various ldoc warnings in menubar
...
Closes https://github.com/awesomeWM/awesome/pull/559 .
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-11-19 22:22:23 +01:00
Daniel Hahler
a648b27af6
menubar.icon_theme: cache index_theme instances
...
Ref: https://github.com/awesomeWM/awesome/pull/523#commitcomment-13716821
2015-10-13 22:28:34 +02:00
Daniel Hahler
7d9b78c13c
menubar.icon_theme.lookup_icon: check for dist in outer loop
2015-10-13 22:28:30 +02:00
Daniel Hahler
75341d9e38
menubar.menu_gen.generate: do not call lookup_icon again
...
`menubar.utils.lookup_icon` gets called via `menubar.utils.parse`
already.
2015-10-13 22:27:20 +02:00
Daniel Hahler
efbddb5875
Add cache for menubar.utils.lookup_icon
...
I have tried to use `utils.icon_cache =
require("gears.cache").new(utils.lookup_icon_uncached)`, but that
appears to get garbage-collected too much?!
2015-10-13 22:27:20 +02:00
Daniel Hahler
7fa3dc97c8
Optimize menubar.icon_theme.lookup_icon: do not look twice
2015-10-13 22:27:11 +02:00
Daniel Hahler
7afd8e3179
get_icon_lookup_path: only return readable/existing dirs
2015-10-13 22:26:39 +02:00
Kazunobu Kuriyama
fbfa6b8995
menubar/icon_theme.lua: Handle scalable icons correctly
...
This bug was caused by typos.
Closes https://github.com/awesomeWM/awesome/pull/525 .
2015-10-13 22:20:43 +02:00
Daniel Hahler
1bd7aa103b
Fix signature for recursive find_icon_path_helper
...
Ref: 81072c0420 (commitcomment-13705007)
.
This reverts a part of 81072c0
.
Closes https://github.com/awesomeWM/awesome/pull/518 .
2015-10-13 22:16:01 +02:00
Daniel Hahler
2723399785
Move is_readable_directory to awful.util.dir_readable
2015-10-11 13:17:57 +02:00
Daniel Hahler
765a5f5790
menubar.icon_theme: use GLib.build_filenamev to join paths
...
This eliminates double slashes from the resulting paths.
`GLib.get_system_data_dirs` might return paths with and without trailing
slashes.
2015-10-11 13:09:33 +02:00
Daniel Hahler
e93ce7c2a8
menubar.icon_theme: minor code style fixes
...
- fix/streamline usage if metatable.__call
2015-10-11 13:09:15 +02:00
Daniel Hahler
a140d80d76
icon_theme.find_icon_path: fix typo: s/filaname/filename
2015-10-11 11:53:31 +02:00
Uli Schlachter
b1493c8f76
Merge branch 'enhance_menubar_icon_path_lookup' of https://github.com/nuko8/awesome
2015-10-10 19:54:23 +02: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
Kazunobu Kuriyama
9ae945c931
Enhance menubar icon path lookup
...
The way of icon path lookup for `menubar` is enhanced so that it is
based on a theme-oriented way as described in the specification:
Icon Theme Specification, Ver. 0.12
http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
To accomplish this:
* Add the two new files `icon_theme.lua` and `index_theme.lua`.
The former implements an icon lookup algorithm suggested in the URL
above. The latter implements a helper object to parse the cache file
`index.theme` of which data is used by the former.
* Modify `menu_gen.lua` to use the new algorithm.
- The implementation of `lookup_category_icons` is changed
accordingly.
- The values of the field `all_categories.icon_name` are changed file
names to icon names, i.e., file extensions which are used to
indicate image file formats are removed.
* Add the new file `icon_theme_spec.lua` for a unit test for checking
if `icon_theme.lua` together with `index_theme.lua` works as
expected.
2015-09-26 11:45:38 +09: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
Julian Wollrath
3a34b49179
Fix LDoc warning.
2015-02-28 23:14:13 +01:00
Julian Wollrath
939dab8ba9
Some more doc fixes all over the place.
...
Signed-off-by: Julian Wollrath <jwollrath@web.de>
2015-02-28 23:14:13 +01:00
Ignas Anikevicius (gns_ank)
a0051c7dc4
Docs: Start menubar refactoring
...
Signed-off-by: Ignas Anikevicius (gns_ank) <anikevicius@gmail.com>
2015-02-28 23:14:11 +01:00
actionless
2a9b1d00e1
feat(lib: menubar): add paginated scrolling
...
also fixes some local/global issues and adds saving current geometry to the instance table
2015-02-23 20:34:26 +01:00
Daniel Hahler
60e04d3ae3
menubar: get_icon_lookup_path: only look in apps/ with icon_themes
...
Ref: https://github.com/awesomeWM/awesome/pull/100#issuecomment-73559676
2015-02-09 20:45:32 +01:00
Daniel Hahler
dc41e62f9a
menubar: icon_formats: svg is supported
2015-02-09 20:45:32 +01:00
Daniel Hahler
d25e15001f
Move building of icon lookup path into get_icon_lookup_path
2015-02-09 20:45:32 +01:00
salorium
c315687dad
menubar: improve path icon behavior
...
This adds $XDG_DATA_DIRS and HOME/.icons for icon lookups.
2015-02-09 20:45:32 +01:00
Roy Crihfield
02bfd06038
menubar: quote special chars
...
- Simplified & renamed nocase function
- Add pattern-quoting functions to awful.util:
- awful.util.query_to_pattern
- awful.util.quote_pattern
- awful.util: Add basic unit tests for menubar query
Fixes https://github.com/awesomeWM/awesome/issues/84 .
2015-02-06 18:27:38 +01:00
Roy Crihfield
d268dba075
menubar: handle nil Name in .desktop files
2015-01-21 17:56:12 -05:00
Daniel Hahler
f2f6eb6821
menubar: skip comments in .desktop files
2014-09-25 02:47:40 +02:00
Sindre Føring Devik
1e6f9f22a5
FS#1278 - Menubar should check all standard directories
...
Added local desktop directory to list of directories parsed by menubar
by using the XDG specification
2014-06-30 15:08:43 +02:00
Uli Schlachter
dcc348d75e
Fix some random ldoc warnings
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-04-13 18:06:49 +02:00
Uli Schlachter
aa51379be0
menubar: Fix API docs
...
ldoc wants documentation comments to start with "---", not just "--".
Signed-off-by: Uli Schlachter <psychon@znc.in>
2013-12-30 00:17:07 +01:00
Alexander Yakushev
b0a056f50a
menubar: Treat KP_Enter as pressing Enter (FS#1072)
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2013-01-10 17:01:41 +01:00
Ignas Anikevicius (gns_ank)
9631ada0d2
Menubar utils fix the wm_name matching once more.
...
The previous attempt at making the utils.wm_name variable useful for
accessing some entries was silly. This is because a typical ShowOnlyIn
string would look as: 'Unity;Gnome;KDE;' and the matching currently is
done for the whole string, where as we need to match only a part of it.
This small (hackish) commit fixes that, or do we wanna parse this line
of a .desktop file properly?
Signed-off-by: Ignas Anikevicius (gns_ank) <anikevicius@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
2013-01-10 16:45:05 +01:00
Arvydas Sidorenko
f57bd595dc
Improved .desktop parsing (FS#1057)
...
When parsing .desktop, we care only about [Desktop Entry] group.
Everything else is ignored.
Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-12-01 16:25:59 +01:00