From cdaf7e07b9e230d800c7f8f13876f19aa3ad41ae Mon Sep 17 00:00:00 2001 From: crater2150 Date: Thu, 7 Apr 2016 11:18:14 +0200 Subject: [PATCH] Add wallpaperrc support --- autobeautiful.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/autobeautiful.lua b/autobeautiful.lua index 26cf004..3dbe5cb 100644 --- a/autobeautiful.lua +++ b/autobeautiful.lua @@ -4,7 +4,12 @@ local awful = require("awful") beautiful.init(awful.util.getdir("config") .. "/theme.lua") -if beautiful.wallpaper then +local wallpaperrc = awful.util.getdir("config") .. "/wallpaperrc" +local f=io.open(wallpaperrc,"r") +if f~=nil then + io.close(f) + dofile(wallpaperrc) +elseif beautiful.wallpaper then for s = 1, screen.count() do gears.wallpaper.maximized(beautiful.wallpaper, s, true) end