Reno is the second iteration of the AWMTK-powered AwesomeWM config.
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

2 years ago
  1. -- Base for widgets
  2. local awmtk2 = require("awmtk2")
  3. local wibox = require("wibox")
  4. local gears = require("gears")
  5. local awful = require("awful")
  6. local beautiful = require("beautiful")
  7. local menugen = require("context_menu")
  8. return function(args)
  9. local style = awmtk2.create_style("root_menu",awmtk2.default,args.style)
  10. local templates = awmtk2.create_template_lib("root_menu",awmtk2.templates,args.templates)
  11. local t = awmtk2.build_templates(templates,style)
  12. local widget = menugen({
  13. items = {
  14. {"Awesome", {
  15. {"open config dir", "xdg-open "..root_path},
  16. {"open docs", "xdg-open https://awesomewm.org/doc/api/"},
  17. {"restart", function() awesome.restart() end},
  18. {"quit", function() awesome.quit() end}
  19. }, beautiful.awesome_icon},
  20. {"open terminal", global.terminal}
  21. },
  22. })
  23. return widget
  24. end