Add rudimentary user config file (and default content)
This commit is contained in:
parent
863060f825
commit
5d3b7a08fa
14
default_config.lua
Normal file
14
default_config.lua
Normal 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
5
rc.lua
@ -3,7 +3,7 @@
|
|||||||
pcall(require, "luarocks.loader")
|
pcall(require, "luarocks.loader")
|
||||||
|
|
||||||
-- DEBUG
|
-- DEBUG
|
||||||
local inspect = require("inspect")
|
local inspect = require("debug/inspect")
|
||||||
|
|
||||||
-- Standard awesome library
|
-- Standard awesome library
|
||||||
local gears = require("gears")
|
local gears = require("gears")
|
||||||
@ -22,6 +22,7 @@ local hotkeys_popup = require("awful.hotkeys_popup")
|
|||||||
require("awful.hotkeys_popup.keys")
|
require("awful.hotkeys_popup.keys")
|
||||||
|
|
||||||
-- Simple awesome
|
-- Simple awesome
|
||||||
|
local config = require("default_config")
|
||||||
local tiling = require("tiling")
|
local tiling = require("tiling")
|
||||||
|
|
||||||
|
|
||||||
@ -53,7 +54,7 @@ end
|
|||||||
|
|
||||||
-- {{{ Variable definitions
|
-- {{{ Variable definitions
|
||||||
-- Themes define colours, icons, font and wallpapers.
|
-- 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.
|
-- This is used later as the default terminal and editor to run.
|
||||||
terminal = "terminator"
|
terminal = "terminator"
|
||||||
|
Loading…
Reference in New Issue
Block a user