2017-02-25 22:19:12 +01:00
|
|
|
--- Take the default theme and add it to ldoc as a sample file.
|
|
|
|
local output_path = ...
|
|
|
|
|
|
|
|
local path = debug.getinfo(1,"S").source:gsub("sample_theme.*",""):gsub("@","")
|
|
|
|
package.path = path .. '?.lua;' .. package.path
|
|
|
|
|
|
|
|
require("sample_files")(
|
|
|
|
"theme.lua",
|
|
|
|
path.."../themes/default/theme.lua",
|
|
|
|
output_path.."/theme.lua",
|
|
|
|
[[---------------------------------------------------------------------------
|
|
|
|
--- The default theme file.
|
|
|
|
--
|
|
|
|
-- If you wish to create a custom theme, copy this file to
|
|
|
|
-- `~/.config/awesome/mytheme.lua`
|
|
|
|
-- and replace:
|
|
|
|
--
|
2017-02-14 00:16:45 +01:00
|
|
|
-- beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua")
|
2017-02-25 22:19:12 +01:00
|
|
|
--
|
|
|
|
-- with
|
|
|
|
--
|
2018-03-11 16:05:52 +01:00
|
|
|
-- beautiful.init(gears.filesystem.get_configuration_dir() .. "mytheme.lua")
|
2017-02-25 22:19:12 +01:00
|
|
|
--
|
|
|
|
-- in your `rc.lua`.
|
|
|
|
--
|
|
|
|
-- Here is the default theme content:
|
|
|
|
--
|
|
|
|
--]]
|
|
|
|
)
|