mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 19:22:32 +00:00
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 })
|
s.quake = lain.util.quake({ app = awful.util.terminal })
|
||||||
|
|
||||||
-- If wallpaper is a function, call it with the screen
|
-- If wallpaper is a function, call it with the screen
|
||||||
if type(theme.wallpaper) == "function" then
|
local wallpaper = theme.wallpaper
|
||||||
theme.wallpaper = theme.wallpaper(s)
|
if type(wallpaper) == "function" then
|
||||||
|
wallpaper = wallpaper(s)
|
||||||
end
|
end
|
||||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
gears.wallpaper.maximized(wallpaper, s, true)
|
||||||
|
|
||||||
-- Tags
|
-- Tags
|
||||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
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 })
|
s.quake = lain.util.quake({ app = awful.util.terminal })
|
||||||
|
|
||||||
-- If wallpaper is a function, call it with the screen
|
-- If wallpaper is a function, call it with the screen
|
||||||
if type(theme.wallpaper) == "function" then
|
local wallpaper = theme.wallpaper
|
||||||
theme.wallpaper = theme.wallpaper(s)
|
if type(wallpaper) == "function" then
|
||||||
|
wallpaper = wallpaper(s)
|
||||||
end
|
end
|
||||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
gears.wallpaper.maximized(wallpaper, s, true)
|
||||||
|
|
||||||
-- Tags
|
-- Tags
|
||||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
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 })
|
s.quake = lain.util.quake({ app = awful.util.terminal })
|
||||||
|
|
||||||
-- If wallpaper is a function, call it with the screen
|
-- If wallpaper is a function, call it with the screen
|
||||||
if type(theme.wallpaper) == "function" then
|
local wallpaper = theme.wallpaper
|
||||||
theme.wallpaper = theme.wallpaper(s)
|
if type(wallpaper) == "function" then
|
||||||
|
wallpaper = wallpaper(s)
|
||||||
end
|
end
|
||||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
gears.wallpaper.maximized(wallpaper, s, true)
|
||||||
|
|
||||||
-- Tags
|
-- Tags
|
||||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
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 })
|
s.quake = lain.util.quake({ app = awful.util.terminal })
|
||||||
|
|
||||||
-- If wallpaper is a function, call it with the screen
|
-- If wallpaper is a function, call it with the screen
|
||||||
if type(theme.wallpaper) == "function" then
|
local wallpaper = theme.wallpaper
|
||||||
theme.wallpaper = theme.wallpaper(s)
|
if type(wallpaper) == "function" then
|
||||||
|
wallpaper = wallpaper(s)
|
||||||
end
|
end
|
||||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
gears.wallpaper.maximized(wallpaper, s, true)
|
||||||
|
|
||||||
-- Tags
|
-- Tags
|
||||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
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 })
|
s.quake = lain.util.quake({ app = awful.util.terminal })
|
||||||
|
|
||||||
-- If wallpaper is a function, call it with the screen
|
-- If wallpaper is a function, call it with the screen
|
||||||
if type(theme.wallpaper) == "function" then
|
local wallpaper = theme.wallpaper
|
||||||
theme.wallpaper = theme.wallpaper(s)
|
if type(wallpaper) == "function" then
|
||||||
|
wallpaper = wallpaper(s)
|
||||||
end
|
end
|
||||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
gears.wallpaper.maximized(wallpaper, s, true)
|
||||||
|
|
||||||
-- Tags
|
-- Tags
|
||||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
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 })
|
s.quake = lain.util.quake({ app = awful.util.terminal })
|
||||||
|
|
||||||
-- If wallpaper is a function, call it with the screen
|
-- If wallpaper is a function, call it with the screen
|
||||||
if type(theme.wallpaper) == "function" then
|
local wallpaper = theme.wallpaper
|
||||||
theme.wallpaper = theme.wallpaper(s)
|
if type(wallpaper) == "function" then
|
||||||
|
wallpaper = wallpaper(s)
|
||||||
end
|
end
|
||||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
gears.wallpaper.maximized(wallpaper, s, true)
|
||||||
|
|
||||||
-- Tags
|
-- Tags
|
||||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
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 })
|
s.quake = lain.util.quake({ app = awful.util.terminal })
|
||||||
|
|
||||||
-- If wallpaper is a function, call it with the screen
|
-- If wallpaper is a function, call it with the screen
|
||||||
if type(theme.wallpaper) == "function" then
|
local wallpaper = theme.wallpaper
|
||||||
theme.wallpaper = theme.wallpaper(s)
|
if type(wallpaper) == "function" then
|
||||||
|
wallpaper = wallpaper(s)
|
||||||
end
|
end
|
||||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
gears.wallpaper.maximized(wallpaper, s, true)
|
||||||
|
|
||||||
-- Tags
|
-- Tags
|
||||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
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 })
|
s.quake = lain.util.quake({ app = awful.util.terminal })
|
||||||
|
|
||||||
-- If wallpaper is a function, call it with the screen
|
-- If wallpaper is a function, call it with the screen
|
||||||
if type(theme.wallpaper) == "function" then
|
local wallpaper = theme.wallpaper
|
||||||
theme.wallpaper = theme.wallpaper(s)
|
if type(wallpaper) == "function" then
|
||||||
|
wallpaper = wallpaper(s)
|
||||||
end
|
end
|
||||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
gears.wallpaper.maximized(wallpaper, s, true)
|
||||||
|
|
||||||
-- Tags
|
-- Tags
|
||||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
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 })
|
s.quake = lain.util.quake({ app = awful.util.terminal })
|
||||||
|
|
||||||
-- If wallpaper is a function, call it with the screen
|
-- If wallpaper is a function, call it with the screen
|
||||||
if type(theme.wallpaper) == "function" then
|
local wallpaper = theme.wallpaper
|
||||||
theme.wallpaper = theme.wallpaper(s)
|
if type(wallpaper) == "function" then
|
||||||
|
wallpaper = wallpaper(s)
|
||||||
end
|
end
|
||||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
gears.wallpaper.maximized(wallpaper, s, true)
|
||||||
|
|
||||||
-- Tags
|
-- Tags
|
||||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
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 })
|
s.quake = lain.util.quake({ app = awful.util.terminal, border = theme.border_width })
|
||||||
|
|
||||||
-- If wallpaper is a function, call it with the screen
|
-- If wallpaper is a function, call it with the screen
|
||||||
if type(theme.wallpaper) == "function" then
|
local wallpaper = theme.wallpaper
|
||||||
theme.wallpaper = theme.wallpaper(s)
|
if type(wallpaper) == "function" then
|
||||||
|
wallpaper = wallpaper(s)
|
||||||
end
|
end
|
||||||
gears.wallpaper.maximized(theme.wallpaper, s, true)
|
gears.wallpaper.maximized(wallpaper, s, true)
|
||||||
|
|
||||||
-- Tags
|
-- Tags
|
||||||
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
||||||
|
|
Loading…
Reference in a new issue