don't override theme.wallpaper; closes #172
This commit is contained in:
parent
5f58dfa52d
commit
c7ffacb512
|
@ -209,10 +209,11 @@ function theme.at_screen_connect(s)
|
|||
s.quake = lain.util.quake({ app = awful.util.terminal })
|
||||
|
||||
-- If wallpaper is a function, call it with the screen
|
||||
if type(theme.wallpaper) == "function" then
|
||||
theme.wallpaper = theme.wallpaper(s)
|
||||
local wallpaper = theme.wallpaper
|
||||
if type(wallpaper) == "function" then
|
||||
wallpaper = wallpaper(s)
|
||||
end
|
||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
||||
gears.wallpaper.maximized(wallpaper, s, true)
|
||||
|
||||
-- Tags
|
||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
||||
|
|
|
@ -293,10 +293,11 @@ function theme.at_screen_connect(s)
|
|||
s.quake = lain.util.quake({ app = awful.util.terminal })
|
||||
|
||||
-- If wallpaper is a function, call it with the screen
|
||||
if type(theme.wallpaper) == "function" then
|
||||
theme.wallpaper = theme.wallpaper(s)
|
||||
local wallpaper = theme.wallpaper
|
||||
if type(wallpaper) == "function" then
|
||||
wallpaper = wallpaper(s)
|
||||
end
|
||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
||||
gears.wallpaper.maximized(wallpaper, s, true)
|
||||
|
||||
-- Tags
|
||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
||||
|
|
|
@ -191,10 +191,11 @@ function theme.at_screen_connect(s)
|
|||
s.quake = lain.util.quake({ app = awful.util.terminal })
|
||||
|
||||
-- If wallpaper is a function, call it with the screen
|
||||
if type(theme.wallpaper) == "function" then
|
||||
theme.wallpaper = theme.wallpaper(s)
|
||||
local wallpaper = theme.wallpaper
|
||||
if type(wallpaper) == "function" then
|
||||
wallpaper = wallpaper(s)
|
||||
end
|
||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
||||
gears.wallpaper.maximized(wallpaper, s, true)
|
||||
|
||||
-- Tags
|
||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
||||
|
|
|
@ -290,10 +290,11 @@ function theme.at_screen_connect(s)
|
|||
s.quake = lain.util.quake({ app = awful.util.terminal })
|
||||
|
||||
-- If wallpaper is a function, call it with the screen
|
||||
if type(theme.wallpaper) == "function" then
|
||||
theme.wallpaper = theme.wallpaper(s)
|
||||
local wallpaper = theme.wallpaper
|
||||
if type(wallpaper) == "function" then
|
||||
wallpaper = wallpaper(s)
|
||||
end
|
||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
||||
gears.wallpaper.maximized(wallpaper, s, true)
|
||||
|
||||
-- Tags
|
||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
||||
|
|
|
@ -255,10 +255,11 @@ function theme.at_screen_connect(s)
|
|||
s.quake = lain.util.quake({ app = awful.util.terminal })
|
||||
|
||||
-- If wallpaper is a function, call it with the screen
|
||||
if type(theme.wallpaper) == "function" then
|
||||
theme.wallpaper = theme.wallpaper(s)
|
||||
local wallpaper = theme.wallpaper
|
||||
if type(wallpaper) == "function" then
|
||||
wallpaper = wallpaper(s)
|
||||
end
|
||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
||||
gears.wallpaper.maximized(wallpaper, s, true)
|
||||
|
||||
-- Tags
|
||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
||||
|
|
|
@ -249,10 +249,11 @@ function theme.at_screen_connect(s)
|
|||
s.quake = lain.util.quake({ app = awful.util.terminal })
|
||||
|
||||
-- If wallpaper is a function, call it with the screen
|
||||
if type(theme.wallpaper) == "function" then
|
||||
theme.wallpaper = theme.wallpaper(s)
|
||||
local wallpaper = theme.wallpaper
|
||||
if type(wallpaper) == "function" then
|
||||
wallpaper = wallpaper(s)
|
||||
end
|
||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
||||
gears.wallpaper.maximized(wallpaper, s, true)
|
||||
|
||||
-- Tags
|
||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
||||
|
|
|
@ -286,10 +286,11 @@ function theme.at_screen_connect(s)
|
|||
s.quake = lain.util.quake({ app = awful.util.terminal })
|
||||
|
||||
-- If wallpaper is a function, call it with the screen
|
||||
if type(theme.wallpaper) == "function" then
|
||||
theme.wallpaper = theme.wallpaper(s)
|
||||
local wallpaper = theme.wallpaper
|
||||
if type(wallpaper) == "function" then
|
||||
wallpaper = wallpaper(s)
|
||||
end
|
||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
||||
gears.wallpaper.maximized(wallpaper, s, true)
|
||||
|
||||
-- Tags
|
||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
||||
|
|
|
@ -213,10 +213,11 @@ function theme.at_screen_connect(s)
|
|||
s.quake = lain.util.quake({ app = awful.util.terminal })
|
||||
|
||||
-- If wallpaper is a function, call it with the screen
|
||||
if type(theme.wallpaper) == "function" then
|
||||
theme.wallpaper = theme.wallpaper(s)
|
||||
local wallpaper = theme.wallpaper
|
||||
if type(wallpaper) == "function" then
|
||||
wallpaper = wallpaper(s)
|
||||
end
|
||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
||||
gears.wallpaper.maximized(wallpaper, s, true)
|
||||
|
||||
-- Tags
|
||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
||||
|
|
|
@ -207,10 +207,11 @@ function theme.at_screen_connect(s)
|
|||
s.quake = lain.util.quake({ app = awful.util.terminal })
|
||||
|
||||
-- If wallpaper is a function, call it with the screen
|
||||
if type(theme.wallpaper) == "function" then
|
||||
theme.wallpaper = theme.wallpaper(s)
|
||||
local wallpaper = theme.wallpaper
|
||||
if type(wallpaper) == "function" then
|
||||
wallpaper = wallpaper(s)
|
||||
end
|
||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
||||
gears.wallpaper.maximized(wallpaper, s, true)
|
||||
|
||||
-- Tags
|
||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
||||
|
|
|
@ -387,10 +387,11 @@ function theme.at_screen_connect(s)
|
|||
s.quake = lain.util.quake({ app = awful.util.terminal, border = theme.border_width })
|
||||
|
||||
-- If wallpaper is a function, call it with the screen
|
||||
if type(theme.wallpaper) == "function" then
|
||||
theme.wallpaper = theme.wallpaper(s)
|
||||
local wallpaper = theme.wallpaper
|
||||
if type(wallpaper) == "function" then
|
||||
wallpaper = wallpaper(s)
|
||||
end
|
||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
||||
gears.wallpaper.maximized(wallpaper, s, true)
|
||||
|
||||
-- Tags
|
||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
||||
|
|
Loading…
Reference in New Issue