From fb114f52d923f9bfd87c7ae3754d819883cc4d1b Mon Sep 17 00:00:00 2001 From: Mark Date: Sat, 16 Jul 2022 19:28:45 -0700 Subject: [PATCH] Minor cleanup --- .vscode/settings.json | 1 + config.lua | 3 --- core/wallpaper.lua | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 36ef7b1..ae75faf 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,6 +6,7 @@ "client", "screen", "mouse", + "window", // Globals defined in rc.lua // Awesome modules diff --git a/config.lua b/config.lua index 0d42e6c..c623c31 100755 --- a/config.lua +++ b/config.lua @@ -1,6 +1,3 @@ --- Per-machine config file --- Make a copy of this file named "config.lua" --- and set options there. local config = {} config.battery = { enabled = false } diff --git a/core/wallpaper.lua b/core/wallpaper.lua index 5bf171a..016dc7c 100755 --- a/core/wallpaper.lua +++ b/core/wallpaper.lua @@ -6,7 +6,6 @@ wallpaper.active = -1 wallpaper.timenow = function() local time = {} - local t for t in string.gmatch(os.date("%H:%M"), "[^:]+") do table.insert(time, t) end @@ -35,7 +34,6 @@ end -- Which image should be scheduled now? wallpaper.current = function() - local i for i = #beautiful.wallpaper, 1, -1 do if wallpaper.get_start_time(beautiful.wallpaper[i]) <= wallpaper.timenow() then return i