Clean up trailing whitespaces
This commit is contained in:
parent
baba863f62
commit
a2bc799549
|
@ -48,7 +48,7 @@ function set_height(amount)
|
||||||
settings.height = amount or defaults.height
|
settings.height = amount or defaults.height
|
||||||
update_settings()
|
update_settings()
|
||||||
end
|
end
|
||||||
modalbind.set_height = set_height
|
modalbind.set_height = set_height
|
||||||
|
|
||||||
--- Change border width of the modebox.
|
--- Change border width of the modebox.
|
||||||
-- @param amount width in pixels, or nil to use default
|
-- @param amount width in pixels, or nil to use default
|
||||||
|
@ -66,7 +66,7 @@ function set_x_offset (amount)
|
||||||
settings.x_offset = amount or defaults.x_offset
|
settings.x_offset = amount or defaults.x_offset
|
||||||
update_settings()
|
update_settings()
|
||||||
end
|
end
|
||||||
modalbind.set_x_offset = set_x_offset
|
modalbind.set_x_offset = set_x_offset
|
||||||
|
|
||||||
--- Change vertical offset of the modebox.
|
--- Change vertical offset of the modebox.
|
||||||
-- set location for the box with set_corner(). The box is shifted downwards if it
|
-- set location for the box with set_corner(). The box is shifted downwards if it
|
||||||
|
|
30
rules.lua
30
rules.lua
|
@ -29,7 +29,7 @@ local function setup(self)
|
||||||
keys = clientkeys,
|
keys = clientkeys,
|
||||||
minimized = false,
|
minimized = false,
|
||||||
size_hints_honor = false,
|
size_hints_honor = false,
|
||||||
buttons = clientbuttons
|
buttons = clientbuttons
|
||||||
},
|
},
|
||||||
-- print name and class of new windows for debugging purposes
|
-- print name and class of new windows for debugging purposes
|
||||||
callback = function(c)
|
callback = function(c)
|
||||||
|
@ -64,14 +64,14 @@ local function setup(self)
|
||||||
rule = { class = "Firefox", instance = "Navigator" },
|
rule = { class = "Firefox", instance = "Navigator" },
|
||||||
properties = {
|
properties = {
|
||||||
tag = tags[rule_screen][2],
|
tag = tags[rule_screen][2],
|
||||||
floating = false, minimized = false
|
floating = false, minimized = false
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
rule = { class = "Whatsapp", instance = "Navigator" },
|
rule = { class = "Whatsapp", instance = "Navigator" },
|
||||||
properties = {
|
properties = {
|
||||||
tag = tags[rule_screen][3],
|
tag = tags[rule_screen][3],
|
||||||
floating = false, minimized = false
|
floating = false, minimized = false
|
||||||
},
|
},
|
||||||
callback = awful.client.setslave
|
callback = awful.client.setslave
|
||||||
},
|
},
|
||||||
|
@ -98,7 +98,7 @@ local function setup(self)
|
||||||
{
|
{
|
||||||
rule = { role = "buddy_list" },
|
rule = { role = "buddy_list" },
|
||||||
properties = {
|
properties = {
|
||||||
master = true
|
master = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -142,37 +142,37 @@ local function setup(self)
|
||||||
{
|
{
|
||||||
rule = { class = "Claws-mail" },
|
rule = { class = "Claws-mail" },
|
||||||
properties = {
|
properties = {
|
||||||
tag = tags[rule_screen][4]
|
tag = tags[rule_screen][4]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
rule = { instance = "Gmutt" },
|
rule = { instance = "Gmutt" },
|
||||||
properties = {
|
properties = {
|
||||||
tag = tags[rule_screen][4]
|
tag = tags[rule_screen][4]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
rule = { instance = "Gcanto" },
|
rule = { instance = "Gcanto" },
|
||||||
properties = {
|
properties = {
|
||||||
tag = tags[rule_screen][5]
|
tag = tags[rule_screen][5]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
rule = { instance = "Gncmpcpp" },
|
rule = { instance = "Gncmpcpp" },
|
||||||
properties = {
|
properties = {
|
||||||
tag = tags[rule_screen][6]
|
tag = tags[rule_screen][6]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
rule = { class = "Gmpc" },
|
rule = { class = "Gmpc" },
|
||||||
properties = {
|
properties = {
|
||||||
tag = tags[rule_screen][6]
|
tag = tags[rule_screen][6]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
rule = { class = "Deluge" },
|
rule = { class = "Deluge" },
|
||||||
properties = {
|
properties = {
|
||||||
tag = tags[rule_screen][7]
|
tag = tags[rule_screen][7]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -180,7 +180,7 @@ local function setup(self)
|
||||||
properties = {
|
properties = {
|
||||||
size_hints_honor = true,
|
size_hints_honor = true,
|
||||||
float = true,
|
float = true,
|
||||||
fullscreen = true
|
fullscreen = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -191,13 +191,13 @@ local function setup(self)
|
||||||
size_hints_honor = true,
|
size_hints_honor = true,
|
||||||
float = true,
|
float = true,
|
||||||
sticky = true,
|
sticky = true,
|
||||||
fullscreen = true
|
fullscreen = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
rule = { class = "Xhtop" },
|
rule = { class = "Xhtop" },
|
||||||
properties = {
|
properties = {
|
||||||
tag = tags[rule_screen][22]
|
tag = tags[rule_screen][22]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -231,13 +231,13 @@ local function setup(self)
|
||||||
{
|
{
|
||||||
rule = { instance = "Awesomelog" },
|
rule = { instance = "Awesomelog" },
|
||||||
properties = {
|
properties = {
|
||||||
tag = tags[rule_screen][14]
|
tag = tags[rule_screen][14]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
rule = { class = "GLSlideshow" },
|
rule = { class = "GLSlideshow" },
|
||||||
properties = {
|
properties = {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,8 +47,8 @@ function simplelog.add_logger(logger, level)
|
||||||
level = settings.defaultlevel
|
level = settings.defaultlevel
|
||||||
end
|
end
|
||||||
table.insert(settings.loggers, function(msg, severity)
|
table.insert(settings.loggers, function(msg, severity)
|
||||||
if severity >= level then
|
if severity >= level then
|
||||||
logger(msg, severity)
|
logger(msg, severity)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
2
tags.lua
2
tags.lua
|
@ -96,7 +96,7 @@ function tags.create_bindings()
|
||||||
for s = 1, screen.count() do
|
for s = 1, screen.count() do
|
||||||
keynumber = math.min(22, math.max(#(list[s]), keynumber));
|
keynumber = math.min(22, math.max(#(list[s]), keynumber));
|
||||||
end
|
end
|
||||||
|
|
||||||
local tagkeys = {}
|
local tagkeys = {}
|
||||||
|
|
||||||
-- Bind all key numbers to tags, using keycodes
|
-- Bind all key numbers to tags, using keycodes
|
||||||
|
|
|
@ -151,7 +151,7 @@ local function mailwidget(name, parent, mailboxes, notify_pos, title) --{{{
|
||||||
bg:set_widget(widget)
|
bg:set_widget(widget)
|
||||||
|
|
||||||
local container = wrap_and_add(name, parent, bg, widget)
|
local container = wrap_and_add(name, parent, bg, widget)
|
||||||
vicious.register(widget, vicious.widgets.mdir, function(widget, args)
|
vicious.register(widget, vicious.widgets.mdir, function(widget, args)
|
||||||
if args[1] > 0 then
|
if args[1] > 0 then
|
||||||
naughty.notify({
|
naughty.notify({
|
||||||
title = "New mail arrived in box " .. title,
|
title = "New mail arrived in box " .. title,
|
||||||
|
|
Loading…
Reference in a new issue