-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrc.lua
56 lines (43 loc) · 1.38 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
pcall(require, "luarocks.loader")
local awful = require("awful")
local beautiful = require("beautiful")
require("awful.autofocus")
-- Theme
local vars = require("main.user_variable")
local config_path = vars.config_path
beautiful.init(config_path.."/theme.lua")
beautiful.maximized_hide_border = true
-- ### Skeleton of the default rc.lua config ### --
require("main.error")
local layouts = require("main.layout")
local rules = require("main.rule")
-- Order matters: it should follow that of the default rc.lua config
awful.layout.layouts = layouts
require("main.tag")
awful.rules.rules = rules
require("appearance.wibox")
-- Set keys
local globalkeys = require("key.globalkey")
local globalbuttons = require("key.globalbuttons")
root.keys(globalkeys)
root.buttons(globalbuttons)
require("main.signal")
require("module.share_keyboard_layout")
-- require("module.apprules")
-- Autostarting of apps always comes last
require("module.autostart")
-- Misc. debugging stuff
-- function dump(o)
-- if type(o) == 'table' then
-- local s = '{ '
-- for k,v in pairs(o) do
-- if type(k) ~= 'number' then k = '"'..k..'"' end
-- s = s .. '['..k..'] = ' .. dump(v) .. ','
-- end
-- return s .. '} '
-- else
-- return tostring(o)
-- end
-- end
-- naughty.notify({ title = "Layout:", text = c.keyboard_layout, timeout = 10 })
-- naughty.notify({ title = "Fake Layout:", text = stdout, timeout = 10 })