awesomewm/autobeautiful.lua
crater2150 a43b908350 Update to Awesome 4.0
Configuration works mostly identical to previous state. Some exceptions:
- Minor changes in tag names (removed unicode symbols), as they are now
  referenced by name in the rules.
- Calendar module is not yet ported and not loaded.
- Scratch terminal on F12 key currently moves to bottom of the screen after
  first opening. Probably will be reimplemented using the new extended
  awful.spawn API.
- awsetbg util writes different wallpaperrc (preexisting wallpaperrc is ignored,
  as the filename now includes .lua)
2017-01-10 17:45:32 +01:00

25 lines
658 B
Lua

local beautiful = require("beautiful")
local gears = require("gears")
local awful = require("awful")
beautiful.init(awful.util.getdir("config") .. "/theme.lua")
local wallpaperrc = awful.util.getdir("config") .. "/wallpaperrc"
local f=io.open(wallpaperrc,"r")
if f~=nil then
io.close(f)
require("wallpaperrc")
screen.connect_signal("property::geometry", set_wallpaper)
else if beautiful.wallpaper then
f = io.open(beautiful.wallpaper)
if f ~= nil then
io.close(f)
screen.connect_signal("property::geometry", function(s)
gears.wallpaper.maximized(beautiful.wallpaper, s, true)
end)
end
end
end
return beautiful