-
Notifications
You must be signed in to change notification settings - Fork 0
/
rc.lua
61 lines (45 loc) · 1.45 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
57
58
59
60
61
-- awesome_mode: api-level=4:screen=on
-- load luarocks if installed
pcall(require, 'luarocks.loader')
-- load theme
local beautiful = require 'beautiful'
local gears = require 'gears'
-- local awful = require 'awful'
beautiful.init(gears.filesystem.get_configuration_dir() .. "theme/theme.lua")
-- load key and mouse bindings
require 'bindings'
-- load rules
require 'rules'
-- load signals
require 'signals'
require 'timers'
local modify = require 'cool.modify'
-- require 'naughty'.notify { text = require 'gears'.filesystem.get_configuration_dir() }
modify.changeWallpaper("current")
modify.updateVolume()
require 'autostart'
-- turn titlebar on when client is floating
-------------------------------------------------------------------------------
client.connect_signal("property::floating", function(c)
if c.floating and not c.requests_no_titlebar and c.class ~= "firefox" then
awful.titlebar.show(c)
else
awful.titlebar.hide(c)
end
end)
-- turn tilebars on when layout is floating
-------------------------------------------------------------------------------
-- Not so good tries
-- client.connect_signal("property::floating", function(c)
-- if c.floating then
-- awful.titlebar.show(c)
-- else
-- awful.titlebar.show(c)
-- end
-- end)
-- awful.tag.attached_connect_signal(nil, "property::layout", function (t)
-- local float = t.layout.name == "floating"
-- for _,c in pairs(t:clients()) do
-- c.floating = float
-- end
-- end)