summaryrefslogtreecommitdiff
path: root/rc.lua
blob: 96635064f6eac278a05a3d7d474ac959569c9cc7 (plain)
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
-- global variable definitions
terminal = os.getenv("TERMINAL") or "xterm"
editor   = os.getenv("EDITOR") or "vi"

-- get results from uname
local uname = io.popen("uname -sn")
local uname_i = uname:read("*a"):gmatch("%g+")
uname:close()

osname = uname_i()
hostname = uname_i()

-- import modules
require("awful.autofocus") -- focus when moving between tags etc.
require("lib.errors")
require("lib.manage")
require("lib.screen")
require("layouts")
require("theme") -- load before bar
require("mouse") -- load before bar & rules
require("bar")
require("keybindings")
require("rules")
require("func.noborders")
require("func.sloppyfocus")
require("func.warpcursor")
--require("func.tagnames")
--require("widgets.audio")

-- call override module if exists
pcall(function() require("hosts." .. hostname) end)