From fe44ee12a1cb30e0abce5898addc04cd165106e4 Mon Sep 17 00:00:00 2001 From: Alexandre Viau Date: Sun, 11 May 2014 22:54:41 -0400 Subject: [PATCH] Moved Wallpaper to ./stock/wallpaper --- rc.lua.blackburn | 6 +----- rc.lua.copland | 6 +----- rc.lua.dremora | 6 +----- rc.lua.holo | 6 +----- rc.lua.multicolor | 6 +----- rc.lua.powerarrow-darker | 6 +----- rc.lua.rainbow | 6 +----- rc.lua.steamburn | 6 +----- stock/wallpaper.lua | 10 ++++++++++ 9 files changed, 18 insertions(+), 40 deletions(-) create mode 100644 stock/wallpaper.lua diff --git a/rc.lua.blackburn b/rc.lua.blackburn index 116c898..6343c15 100644 --- a/rc.lua.blackburn +++ b/rc.lua.blackburn @@ -49,11 +49,7 @@ end -- }}} -- {{{ Wallpaper -if beautiful.wallpaper then - for s = 1, screen.count() do - gears.wallpaper.maximized(beautiful.wallpaper, s, true) - end -end +require("stock.wallpaper") -- }}} -- {{{ Menu diff --git a/rc.lua.copland b/rc.lua.copland index 08fb8fa..69bddd4 100644 --- a/rc.lua.copland +++ b/rc.lua.copland @@ -60,11 +60,7 @@ end -- }}} -- {{{ Wallpaper -if beautiful.wallpaper then - for s = 1, screen.count() do - gears.wallpaper.maximized(beautiful.wallpaper, s, true) - end -end +require("stock.wallpaper") -- }}} -- {{{ Menu diff --git a/rc.lua.dremora b/rc.lua.dremora index f17b8cb..59e7d1f 100644 --- a/rc.lua.dremora +++ b/rc.lua.dremora @@ -49,11 +49,7 @@ end -- }}} -- {{{ Wallpaper -if beautiful.wallpaper then - for s = 1, screen.count() do - gears.wallpaper.maximized(beautiful.wallpaper, s, true) - end -end +require("stock.wallpaper") -- }}} -- {{{ Menu diff --git a/rc.lua.holo b/rc.lua.holo index b23c45a..9b5db6c 100644 --- a/rc.lua.holo +++ b/rc.lua.holo @@ -51,11 +51,7 @@ end -- }}} -- {{{ Wallpaper -if beautiful.wallpaper then - for s = 1, screen.count() do - gears.wallpaper.maximized(beautiful.wallpaper, s, true) - end -end +require("stock.wallpaper") -- }}} -- {{{ Menu diff --git a/rc.lua.multicolor b/rc.lua.multicolor index 8cd36ec..909853c 100644 --- a/rc.lua.multicolor +++ b/rc.lua.multicolor @@ -55,11 +55,7 @@ end -- }}} -- {{{ Wallpaper -if beautiful.wallpaper then - for s = 1, screen.count() do - gears.wallpaper.maximized(beautiful.wallpaper, s, true) - end -end +require("stock.wallpaper") -- }}} -- {{{ Freedesktop Menu diff --git a/rc.lua.powerarrow-darker b/rc.lua.powerarrow-darker index 1426f06..b35fdb2 100644 --- a/rc.lua.powerarrow-darker +++ b/rc.lua.powerarrow-darker @@ -53,11 +53,7 @@ end -- }}} -- {{{ Wallpaper -if beautiful.wallpaper then - for s = 1, screen.count() do - gears.wallpaper.maximized(beautiful.wallpaper, s, true) - end -end +require("stock.wallpaper") -- }}} -- {{{ Menu diff --git a/rc.lua.rainbow b/rc.lua.rainbow index 1de8844..1c04243 100644 --- a/rc.lua.rainbow +++ b/rc.lua.rainbow @@ -56,11 +56,7 @@ end -- }}} -- {{{ Wallpaper -if beautiful.wallpaper then - for s = 1, screen.count() do - gears.wallpaper.maximized(beautiful.wallpaper, s, true) - end -end +require("stock.wallpaper") -- }}} -- {{{ Menu diff --git a/rc.lua.steamburn b/rc.lua.steamburn index dac1f98..f158066 100644 --- a/rc.lua.steamburn +++ b/rc.lua.steamburn @@ -54,11 +54,7 @@ end -- }}} -- {{{ Wallpaper -if beautiful.wallpaper then - for s = 1, screen.count() do - gears.wallpaper.maximized(beautiful.wallpaper, s, true) - end -end +require("stock.wallpaper") -- }}} -- {{{ Menu diff --git a/stock/wallpaper.lua b/stock/wallpaper.lua new file mode 100644 index 0000000..2c70a7f --- /dev/null +++ b/stock/wallpaper.lua @@ -0,0 +1,10 @@ +local beautiful = require("beautiful") +local gears = require("gears") + +-- {{{ Wallpaper +if beautiful.wallpaper then + for s = 1, screen.count() do + gears.wallpaper.maximized(beautiful.wallpaper, s, true) + end +end +-- }}}