Commit Diff


commit - c033b56b45294a271cda1e5b88df88876de40e9e
commit + 72803357f32232ba1a5d342037b3adc06901a47e
blob - 7a1862466bf5e1d3016deb0a112456af7c724180
blob + 14ebada5d43162a381a007dc9ed0a68ae8d38af3
--- bin/setbackground.lua
+++ bin/setbackground.lua
@@ -12,8 +12,8 @@ end
 local colors = require("aestel.colors")
 local display = require("aestel.display")
 local input = require("aestel.input")
+local ui = require("aestel.menu")
 local navigate = require("aestel.navigate")
-local ui = require("aestel.ui")
 
 local bg_dir = os.getenv("HOME") .. "/.local/share/backgrounds"
 
@@ -31,7 +31,7 @@ local function set_background()
 		if not selected_file then
 			-- Quitting
 			display.status_line("... Exiting Background Setter", colors.REVERSE)
-			os.execute("sleep 2")
+			os.execute("sleep 3")
 			display.clear_screen()
 			return
 		end
@@ -39,8 +39,8 @@ local function set_background()
 		local filename = selected_file:match("([^/]+)$")
 
 		-- Setting background
-		display.status_line("... Setting background " .. filename, colors.REVERSE)
-		os.execute("sleep 2")
+		display.status_line("... Setting background ", colors.REVERSE)
+		os.execute("sleep 3")
 
 		local handle = io.popen("bgs '" .. selected_file .. "' 2>&1")
 		local output = handle:read("*a")
@@ -51,7 +51,7 @@ local function set_background()
 			and "... Background set successfully"
 			or  "... Warning: bgs may have failed"
 		display.status_line(message, colors.REVERSE)
-		os.execute("sleep 2")
+		os.execute("sleep 3")
 
 		-- Update current_dir to directory of selected file
 		current_dir = selected_file:match("^(.*)/[^/]+$") or bg_dir