s.widget or it will only work on one screen
This commit is contained in:
parent
25cd28023f
commit
a44cef719e
|
@ -39,12 +39,14 @@ end
|
||||||
|
|
||||||
function update_background_widget(s)
|
function update_background_widget(s)
|
||||||
|
|
||||||
|
naughty.notify({text="test"})
|
||||||
|
|
||||||
local margin = 25
|
local margin = 25
|
||||||
|
|
||||||
awful.spawn.easy_async_with_shell(":", function()
|
awful.spawn.easy_async_with_shell(":", function()
|
||||||
|
|
||||||
if widget ~= nil then
|
if s.widget ~= nil then
|
||||||
widget:remove()
|
s.widget:remove()
|
||||||
end
|
end
|
||||||
|
|
||||||
local f = io.open(todo_path, "rb")
|
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})
|
background_widget:struts({left=0, right=0, top=0, bottom=0})
|
||||||
|
|
||||||
widget = background_widget
|
s.widget = background_widget
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue