You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
927 B
25 lines
927 B
-- Base for widgets
|
|
local awmtk2 = require("awmtk2")
|
|
local wibox = require("wibox")
|
|
local gears = require("gears")
|
|
local awful = require("awful")
|
|
local beautiful = require("beautiful")
|
|
local menugen = require("context_menu")
|
|
|
|
return function(args)
|
|
local style = awmtk2.create_style("root_menu",awmtk2.default,args.style)
|
|
local templates = awmtk2.create_template_lib("root_menu",awmtk2.templates,args.templates)
|
|
local t = awmtk2.build_templates(templates,style)
|
|
local widget = menugen({
|
|
items = {
|
|
{"Awesome", {
|
|
{"open config dir", "xdg-open "..root_path},
|
|
{"open docs", "xdg-open https://awesomewm.org/doc/api/"},
|
|
{"restart", function() awesome.restart() end},
|
|
{"quit", function() awesome.quit() end}
|
|
}, beautiful.awesome_icon},
|
|
{"open terminal", global.terminal}
|
|
},
|
|
})
|
|
return widget
|
|
end
|