summaryrefslogtreecommitdiff
path: root/rc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'rc.lua')
-rw-r--r--rc.lua31
1 files changed, 31 insertions, 0 deletions
diff --git a/rc.lua b/rc.lua
new file mode 100644
index 0000000..9663506
--- /dev/null
+++ b/rc.lua
@@ -0,0 +1,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)