Add rudimentary user config file (and default content)

This commit is contained in:
Alice Gaudon 2019-07-23 15:20:27 +02:00
parent 863060f825
commit 5d3b7a08fa
4 changed files with 17 additions and 2 deletions

14
default_config.lua Normal file
View File

@ -0,0 +1,14 @@
-- Default configuration file
-- Copy to TBD to override values. This file will be overridden on update.
local awful = require("awful")
local config = {}
-- Theme
-- Change to gears.filesystem.get_themes_dir() .. "default/theme.lua" to use default awesome theme
config.theme = awful.util.getdir("config") .. "/default_theme.lua"
return config

5
rc.lua
View File

@ -3,7 +3,7 @@
pcall(require, "luarocks.loader")
-- DEBUG
local inspect = require("inspect")
local inspect = require("debug/inspect")
-- Standard awesome library
local gears = require("gears")
@ -22,6 +22,7 @@ local hotkeys_popup = require("awful.hotkeys_popup")
require("awful.hotkeys_popup.keys")
-- Simple awesome
local config = require("default_config")
local tiling = require("tiling")
@ -53,7 +54,7 @@ end
-- {{{ Variable definitions
-- Themes define colours, icons, font and wallpapers.
beautiful.init(awful.util.getdir("config") .. "/theme.lua")
beautiful.init(config.theme)
-- This is used later as the default terminal and editor to run.
terminal = "terminator"