]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/widgets/pomodoro.lua
mutt: fix F macro to not write message to home
[dotfiles.git] / awesome / widgets / pomodoro.lua
index 3947aed71068ca7edfec32302b8a054a72f8c27d..7e7a5c1cd0c51099b999b0ef4e559b8bef93bb16 100644 (file)
@@ -8,6 +8,7 @@ pomodoro.work_duration = 25 * 60
 
 -- format string
 pomodoro.format = function (t) return " <b>"..t.."</b>" end
+pomodoro.auto_start_pomodoro = false
 
 pomodoro.init()
 
@@ -19,12 +20,12 @@ pombox:add(pomodoro.widget)
 -- 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 vim -c 'call vimwiki#diary#make_note(v:count1)' + -c 'r !date +\" * \\%H:\\%M  \"' -c 'start!'")
+pomodoro:connect_signal("work_stop", function ()
+    awful.spawn(terminal.." -name diary -e diary")
 end)
 
 globalkeys = awful.util.table.join(globalkeys,
-    awful.key({ modkey, "Shift" }, "p", function() pomodoro:start() end)
+    awful.key({ modkey, "Shift" }, "p", function() pomodoro:toggle() end)
 )
 
 return pombox