my complicated awesomewm config (SUNSETTED)
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.

44 lines
1.6 KiB

3 years ago
  1. -- If LuaRocks is installed, make sure that packages installed through it are
  2. -- found (e.g. lgi). If LuaRocks is not installed, do nothing.
  3. package.path = os.getenv("HOME").."/.config/awesome/libs/?.lua;"
  4. ..os.getenv("HOME").."/.config/awesome/libs/?/init.lua;"
  5. ..os.getenv("HOME").."/.config/awesome/modules/?/init.lua;"
  6. ..os.getenv("HOME").."/.config/awesome/modules/?.lua;"
  7. ..package.path
  8. package.cpath = os.getenv("HOME").."/.config/awesome/libs/?.so;"..package.cpath
  9. pcall(require, "luarocks.loader")
  10. -- Standard awesome library
  11. local gears = require("gears")
  12. local awful = require("awful")
  13. require("awful.autofocus")
  14. -- Widget and layout library
  15. local wibox = require("wibox")
  16. -- Theme handling library
  17. local beautiful = require("beautiful")
  18. -- Notification library
  19. local naughty = require("naughty")
  20. -- Enable hotkeys help widget for VIM and other apps
  21. -- when client with a matching name is opened:
  22. require("awful.hotkeys_popup.keys")
  23. -- {{{ Default modules
  24. -- WARNING: Order matters. Don't change it unless you know what you're doing. Read ./core/README.txt
  25. require("core.error")
  26. require("core.vars")
  27. require("core.style")
  28. require("core.binds")
  29. require("core.layout")
  30. require("core.rules")
  31. require("core.signals")
  32. -- }}}
  33. -- This is a questionable decision, considering that lua has automatic garbage collection, however, it might potentially improve memory usage while not using up much cpu or memory either.
  34. require("gears").timer.start_new(60,function()
  35. collectgarbage("collect")
  36. end)
  37. require("custom_binds")
  38. require("awesomerc")
  39. --require("powerman")