-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrc.lua
40 lines (30 loc) · 1.02 KB
/
rc.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
-- ------
-- rc.lua
-- ------
-- AwesomeWM setup/configuration shell
--
-- https://github.com/Sorky/config-awesome
--
-- (c) GNU General Public License v3.0
--
-- Required code libraries
local utils = { pcall_fallback = require( "utils.pcall_fallback" ) }
-- Derived constants
local config_path = awesome.conffile:match(".*/")
-- Allow library overrides
package.path = config_path .. "_overrides/?.lua;" .. config_path .. "_overrides/?/init.lua;" .. package.path:match("/usr.*")
print( "Overrides added: ", package.path )
-- Error handling
utils.pcall_fallback( config_path, "debug.lua" )
-- Start applications at startup
utils.pcall_fallback( config_path, "startup.lua" )
-- Configure the theme and other defaults
utils.pcall_fallback( config_path, "config.lua" )
-- System keys
utils.pcall_fallback( config_path, "keys.lua" )
-- System menu
utils.pcall_fallback( config_path, "menu.lua" )
-- Screen layout
utils.pcall_fallback( config_path, "screens.lua" )
-- Client behaviours
utils.pcall_fallback( config_path, "clients.lua" )