From a44cef719e6f90769d8e0dc506d9570be466ee98 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Mon, 17 Sep 2018 09:20:54 +0200 Subject: [PATCH] s.widget or it will only work on one screen --- awesome/background_widget.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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