X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/2e8fd41bc3ca120ae71658aeda98bcb91a0fd9d9..8153bfc1e3cff8a3100ce2e69d444811cd0aef85:/widgets/contrib/task.lua diff --git a/widgets/contrib/task.lua b/widgets/contrib/task.lua index 3b8039f..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 @@ -36,6 +37,12 @@ function task:show(scr_pos) 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 = "