]> git.rmz.io Git - dotfiles.git/commitdiff
awesome: update pomodoro module and config
authorSamir Benmendil <me@rmz.io>
Mon, 27 Feb 2017 01:12:15 +0000 (01:12 +0000)
committerSamir Benmendil <me@rmz.io>
Mon, 27 Feb 2017 01:12:15 +0000 (01:12 +0000)
awesome/widgets/pomodoro
awesome/widgets/pomodoro.lua

index b7aca69dd5c74df33f6cc7e3902578cc71f582ce..2b02f66d1ee0f99a3a084d918cabb3bdfd8d4f19 160000 (submodule)
@@ -1 +1 @@
-Subproject commit b7aca69dd5c74df33f6cc7e3902578cc71f582ce
+Subproject commit 2b02f66d1ee0f99a3a084d918cabb3bdfd8d4f19
index 46ca53855b3b25cc28935e3c14764908afe2f36f..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 ()
+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