Files
tawm/pkgs/awesome/awesome/rc.lua
2024-08-06 00:49:41 +05:30

41 lines
1.3 KiB
Lua

-- awesome_mode: api-level=4:screen=on
-- 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")
--- Error handling.
-- Notification library.
local naughty = require("naughty")
-- Check if awesome encountered an error during startup and fell back to
-- another config (This code will only ever execute for the fallback config).
naughty.connect_signal("request::display_error", function(message, startup)
naughty.notification({
urgency = "critical",
title = "Oops, an error happened" .. (startup and " during startup!" or "!"),
message = message,
})
end)
-- Allow Awesome to automatically focus a client upon changing tags or loading.
require("awful.autofocus")
-- Enable hotkeys help widget for VIM and other apps when client with a matching
-- name is opened:
require("awful.hotkeys_popup.keys")
-- Load the theme. In other words, defines the variables within the `beautiful`
-- table.
require("theme")
-- Treat all signals. Bear in mind this implies creating all tags, attaching
-- their layouts, setting client behavior and loading UI.
require("signal")
-- Set all keybinds.
require("binds")
-- Load all client rules.
require("config.rules")
-- Start up apps
require("startup")