Skip to content

Commit

Permalink
updated LuaRocks spec
Browse files Browse the repository at this point in the history
  • Loading branch information
lcpz committed Oct 16, 2018
1 parent 810f48c commit 4ead7a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package = "awesome-freedesktop"
version = "git"
version = "scm-1"
source = {
url = "https://github.com/lcpz/awesome-freedesktop",
tag = "git"
tag = "scm-1`"
}
description = {
summary = "Freedesktop.org menu and desktop icons support for Awesome WM",
Expand Down
10 changes: 6 additions & 4 deletions menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ function menu.build(args)
local icon_size = args.icon_size
local before = args.before or {}
local after = args.after or {}
local sub_menu = args.sub_menu or false
local skip_items = args.skip_items or {}
local sub_menu = args.sub_menu or false

local result = {}
local _menu = awful_menu({ items = before })
Expand Down Expand Up @@ -99,10 +99,12 @@ function menu.build(args)
-- Sort categories alphabetically also
table.sort(result, function(a, b) return string.byte(a[1]) < string.byte(b[1]) end)

-- Add menu item to hold the generated menu
if sub_menu then
result = {{sub_menu, result}}
end

-- Add items to menu
if sub_menu then
result = {{sub_menu, result}}
end
for _, v in pairs(result) do _menu:add(v) end
for _, v in pairs(after) do _menu:add(v) end
end)
Expand Down
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4ead7a4

Please sign in to comment.