1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-10-22 12:31:23 +00:00

don't override theme.wallpaper; closes #172

This commit is contained in:
Luke Bonham 2017-03-17 17:23:34 +01:00
parent 5f58dfa52d
commit c7ffacb512
10 changed files with 40 additions and 30 deletions

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)