我是新来的人,为Awesome中的rc.lua做自定义lua,并且在处理如何根据鼠标位置启动某些东西时遇到了一些麻烦。这是我所拥有的,但迄今为止,它没有做任何事情。在鼠标触及屏幕边缘时执行命令Awesome-wm
-- Open todo when mouse hits right screen edge.
todo_timer = timer({timeout = 0.1})
todo_timer:add_signal("todopopup", function()
if mouse.coords.x >= 3198 then
scratch.drop("urxvt -e vim /home/ryan/to-do", "center", "right", 0.33, 1, "true")
end
end)
todo_timer:start()
--
瑞恩,你可以回答你自己的问题。 (只需点击答案按钮。)您的答案不会丢失。只需点击“编辑...”链接并复制你的文章。将_that_作为答案。 – Shiki