From 923eb46350b1102749eb05cd2120c96cc6a715d0 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Fri, 18 Oct 2024 21:49:17 -0500 Subject: initial commit --- rc.lua | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 rc.lua (limited to 'rc.lua') 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) -- cgit v1.2.3