Minor cleanup
parent
c4a95a8b40
commit
fb114f52d9
|
@ -6,6 +6,7 @@
|
||||||
"client",
|
"client",
|
||||||
"screen",
|
"screen",
|
||||||
"mouse",
|
"mouse",
|
||||||
|
"window",
|
||||||
|
|
||||||
// Globals defined in rc.lua
|
// Globals defined in rc.lua
|
||||||
// Awesome modules
|
// Awesome modules
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
-- Per-machine config file
|
|
||||||
-- Make a copy of this file named "config.lua"
|
|
||||||
-- and set options there.
|
|
||||||
local config = {}
|
local config = {}
|
||||||
|
|
||||||
config.battery = { enabled = false }
|
config.battery = { enabled = false }
|
||||||
|
|
|
@ -6,7 +6,6 @@ wallpaper.active = -1
|
||||||
wallpaper.timenow = function()
|
wallpaper.timenow = function()
|
||||||
local time = {}
|
local time = {}
|
||||||
|
|
||||||
local t
|
|
||||||
for t in string.gmatch(os.date("%H:%M"), "[^:]+") do
|
for t in string.gmatch(os.date("%H:%M"), "[^:]+") do
|
||||||
table.insert(time, t)
|
table.insert(time, t)
|
||||||
end
|
end
|
||||||
|
@ -35,7 +34,6 @@ end
|
||||||
|
|
||||||
-- Which image should be scheduled now?
|
-- Which image should be scheduled now?
|
||||||
wallpaper.current = function()
|
wallpaper.current = function()
|
||||||
local i
|
|
||||||
for i = #beautiful.wallpaper, 1, -1 do
|
for i = #beautiful.wallpaper, 1, -1 do
|
||||||
if wallpaper.get_start_time(beautiful.wallpaper[i]) <= wallpaper.timenow() then
|
if wallpaper.get_start_time(beautiful.wallpaper[i]) <= wallpaper.timenow() then
|
||||||
return i
|
return i
|
||||||
|
|
Loading…
Reference in New Issue