Files
AwesomeWM-Config/rc.lua
2025-12-30 13:23:54 -07:00

29 lines
733 B
Lua

-- If LuaRocks is installed, make sure that packages installed through it are
-- found (e.g. lgi). If LuaRocks is not installed, do nothing.
pcall(require, "luarocks.loader")
local awful = require("awful")
local beautiful = require("beautiful")
require("awful.autofocus")
local main = require("main")
local bindings = require("bindings")
local theme = require("theme")
local screen = require("deco.screens")
beautiful.init(theme)
RC = {}
RC.vars = main.user_vars()
RC.layouts = main.layouts()
RC.tags = main.tags()
awful.layout.layouts = RC.layouts
screen()
-- Set keys
root.buttons(bindings.global_buttons())
root.keys(bindings.global_keys())
awful.rules.rules = main.rules(bindings.client_keys(), bindings.client_buttons())