-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrc.lua
34 lines (28 loc) · 1012 Bytes
/
rc.lua
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
32
33
34
local spawn = require("awful.spawn")
local gfs = require("gears.filesystem")
local beautiful = require("beautiful")
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
)
dpi = beautiful.xresources.apply_dpi
-- Autostart programs
spawn.with_shell(gfs.get_configuration_dir() .. "configuration/autostart.sh")
-- Theme + Configs
beautiful.init(gfs.get_configuration_dir() .. "theme/theme.lua")
require("bindings")
require("configuration")
-- Import UI + Signals
require("ui")
require("signals")
-- Garbage Collector Settings
collectgarbage("setpause", 110)
collectgarbage("setstepmul", 1000)