diff --git a/awesome/background_widget.lua b/awesome/background_widget.lua index 415d267..c82ee98 100644 --- a/awesome/background_widget.lua +++ b/awesome/background_widget.lua @@ -39,12 +39,14 @@ end function update_background_widget(s) + naughty.notify({text="test"}) + local margin = 25 awful.spawn.easy_async_with_shell(":", function() - if widget ~= nil then - widget:remove() + if s.widget ~= nil then + s.widget:remove() end local f = io.open(todo_path, "rb") @@ -84,7 +86,7 @@ function update_background_widget(s) background_widget:struts({left=0, right=0, top=0, bottom=0}) - widget = background_widget + s.widget = background_widget end