Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Commit

Permalink
set default wallpaper first
Browse files Browse the repository at this point in the history
  • Loading branch information
RMTT committed Sep 15, 2020
1 parent 0fda36b commit 4919087
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions theme/fly/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,19 @@ beautiful.init(gears.filesystem.get_configuration_dir() .. "theme/fly/theme.lua"
local fly = {}

function fly:init(config)
-- set default wallpaper first
screen.connect_signal("request::wallpaper", function(s)
-- Wallpaper
if beautiful.wallpaper then
local wallpaper = beautiful.wallpaper
-- If wallpaper is a function, call it with the screen
if type(wallpaper) == "function" then
wallpaper = wallpaper(s)
end
gears.wallpaper.maximized(wallpaper, s, true)
end
end)

-- [[ config tags
for _, t in pairs(config.tags) do
local selected = false
Expand Down

0 comments on commit 4919087

Please sign in to comment.