X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/973b56ce0b9ce214b5dc17795893ece7def6ce78..0493baffd5f17b6331974ae1dac4d404d016e351:/widgets/contrib/task.lua diff --git a/widgets/contrib/task.lua b/widgets/contrib/task.lua index 6425926..6f131e2 100644 --- a/widgets/contrib/task.lua +++ b/widgets/contrib/task.lua @@ -12,6 +12,7 @@ local awful = require("awful") local beautiful = require("beautiful") local naughty = require("naughty") +local mouse = mouse local io = io local string = { len = string.len } local tonumber = tonumber @@ -31,11 +32,17 @@ function task:hide() end end -function task:show() +function task:show(scr_pos) task:hide() local f, c_text + if task.followmouse then + local scrp = mouse.screen + else + local scrp = scr_pos or task.scr_pos + end + f = io.popen('task') c_text = "