-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrc.lua
34 lines (33 loc) · 964 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 function boot()
local awful = require("awful")
local gears = require("gears")
pcall(require, "luarocks.loader")
package.path = os.getenv("AWESOME_LUA_PATH") .. package.path
package.cpath = os.getenv("AWESOME_CONFIG") .. "/lua/?.so;" .. package.cpath
require("main")
end
local ok, err = xpcall(boot,debug.traceback)
print(err)
if not ok then
local naughty = require("naughty")
naughty.notify({ preset = naughty.config.presets.critical,
title = "Oops, an error happened!",
text = tostring(err) })
print("Fallback Mode")
print(err)
local t = awful.tag.add("tag", { screen = awful.screen.focused(), layout = awful.layout.suit.tile })
print("Tag created")
t:view_only()
--pcall(require "rules")
_G.root.keys(
gears.table.join(
awful.key(
{ "Mod4", "Control" }, "r",
_G.awesome.restart
),
awful.key({ "Mod4" }, "Return", function()
awful.spawn("kitty")
end)
)
)
end