]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/widgets/pomodoro.lua
awesome: update pomodoro submodule
[dotfiles.git] / awesome / widgets / pomodoro.lua
index 942967df7a9d51be578e39888edcae879b7b1117..46ca53855b3b25cc28935e3c14764908afe2f36f 100644 (file)
@@ -2,9 +2,9 @@ local pomodoro = require("widgets/pomodoro/init")
 local wibox = require("wibox")
 
 -- durations in seconds
-pomodoro.short_pause_duration = 0.5 * 60
-pomodoro.long_pause_duration = 1 * 60
-pomodoro.work_duration = 1 * 60
+pomodoro.short_pause_duration = 5 * 60
+pomodoro.long_pause_duration = 30 * 60
+pomodoro.work_duration = 25 * 60
 
 -- format string
 pomodoro.format = function (t) return " <b>"..t.."</b>" end
@@ -16,10 +16,12 @@ 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 () naughty.notify{ text = "start_pause",   timeout = 10 } end)
+-- 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)