awesomewm/autobeautiful.lua

19 lines
478 B
Lua
Raw Normal View History

2013-04-13 15:17:09 +00:00
local beautiful = require("beautiful")
local gears = require("gears")
2014-08-28 08:58:03 +00:00
local awful = require("awful")
2013-04-13 15:17:09 +00:00
beautiful.init(awful.util.getdir("config") .. "/theme.lua")
2016-04-07 09:18:14 +00:00
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
2013-04-13 15:17:09 +00:00
for s = 1, screen.count() do
gears.wallpaper.maximized(beautiful.wallpaper, s, true)
end
end
return beautiful