added more widgets, rewritten folder structure
This commit is contained in:
18
awesome/main/wallpaper.lua
Normal file
18
awesome/main/wallpaper.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
---------------------------------------
|
||||
-- This function sets your wallpaper --
|
||||
---------------------------------------
|
||||
-- Awesome Libs
|
||||
local gears = require("gears")
|
||||
local beautiful = require("beautiful")
|
||||
|
||||
function Set_wallpaper(s)
|
||||
if beautiful.wallpaper then
|
||||
local wallpaper = beautiful.wallpaper
|
||||
if type(wallpaper) == "function" then
|
||||
wallpaper = wallpaper(s)
|
||||
end
|
||||
gears.wallpaper.maximized(wallpaper, s, true)
|
||||
end
|
||||
end
|
||||
|
||||
screen.connect_signal("property::geometry", Set_wallpaper)
|
||||
Reference in New Issue
Block a user