diff --git a/awesome/rc.lua b/awesome/rc.lua index edc9bd2..13d6839 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -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() - -- }}}