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.

19 lines
1.0 KiB

2 years ago
2 years ago
2 years ago
  1. -- This file is part of Reno desktop.
  2. --
  3. -- Reno desktop is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  4. --
  5. -- Reno desktop is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  6. --
  7. -- You should have received a copy of the GNU General Public License along with Reno desktop. If not, see <https://www.gnu.org/licenses/>.
  8. -- Global settings
  9. local conf = require("parsers").conf
  10. local envsub = require("utils").substitute_env
  11. local conf_file = io.open(root_path.."/desktop.conf","r")
  12. if not conf_file then
  13. error("desktop.conf is missing or not readable")
  14. end
  15. config = conf(conf_file:read("*a"))
  16. conf_file:close()
  17. global = config.global
  18. global.terminal = envsub(global.terminal)
  19. global.browser = envsub(global.browser)