X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/e5d7e78f09fdaad72aea931b18487328d4509297..bf3946a23e734bb0a5e25f9527fe12254e226d0b:/awesome/widgets/pomodoro.lua diff --git a/awesome/widgets/pomodoro.lua b/awesome/widgets/pomodoro.lua index 3c7af63..46ca538 100644 --- a/awesome/widgets/pomodoro.lua +++ b/awesome/widgets/pomodoro.lua @@ -15,6 +15,14 @@ pombox = wibox.layout.fixed.horizontal() pombox:add(pomodoro.icon_widget) pombox:add(pomodoro.widget) +--TODO connect signals to something sensible (sb:20170130) +-- pomodoro:connect_signal("stop_working", function () naughty.notify{ text = "stop_working", timeout = 10 } end) +-- pomodoro:connect_signal("stop_pause", function () naughty.notify{ text = "stop_pause", timeout = 10 } end) +-- pomodoro:connect_signal("start_working", function () naughty.notify{ text = "start_working", timeout = 10 } end) +pomodoro:connect_signal("start_pause", function () + awful.spawn(terminal.." -name diary -e diary") +end) + globalkeys = awful.util.table.join(globalkeys, awful.key({ modkey, "Shift" }, "p", function() pomodoro:start() end) )