Forget dynamic wallpaper

This commit is contained in:
Thomas Forgione 2018-11-19 09:49:23 +01:00
parent 4c91869c90
commit f7fa1d3ef0
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 3 additions and 23 deletions

View File

@ -21,22 +21,6 @@ home = os.getenv('HOME')
os.execute('xset m 16/1 0')
os.setlocale("fr_FR.UTF-8")
local wallpaper_root = home .. "/Pictures/current-wallpapers/"
local max_wallpaper_index = 192
math.randomseed(os.time())
function update_wallpaper()
local index = math.floor(1 + math.random() * (max_wallpaper_index))
local wallpaper = wallpaper_root .. string.format("%04d", index) .. '.jpg'
for s = 1, screen.count() do
gears.wallpaper.maximized(wallpaper, s, true)
end
beautiful.wallpaper = wallpaper
end
local wallpaper_timer = timer({timeout=600})
wallpaper_timer:connect_signal("timeout", update_wallpaper)
-- Run xsession if exists
function file_exists(name)
local f=io.open(name,"r")
@ -222,7 +206,7 @@ local volume = require('volume')
local calendar = require('calendar')
local launchbar = require('launchbar')
local music = require('music')
local background = require('background_widget')
-- local background = require('background_widget')
local delimiter = wibox.widget.textbox(" | ")
local function set_wallpaper(s)
@ -295,7 +279,7 @@ awful.screen.connect_for_each_screen(function(s)
},
}
update_background_widget(s)
-- update_background_widget(s)
end)
-- }}}
@ -507,9 +491,8 @@ globalkeys = awful.util.table.join(
os.execute('xdotool type --clearmodifiers ' .. options.email:sub(i,i))
end
end)
end, {description="lol", group="autoinput"}),
end, {description="lol", group="autoinput"})
awful.key({modkey}, "e", update_wallpaper)
)
clientkeys = awful.util.table.join(
@ -725,7 +708,4 @@ end)
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
wallpaper_timer:start()
update_wallpaper()
-- }}}