]> git.rmz.io Git - dotfiles.git/blob - awesome/widgets/pomodoro.lua
all the smartlam stuff
[dotfiles.git] / awesome / widgets / pomodoro.lua
1 local pomodoro = require("widgets/pomodoro/init")
2 local wibox = require("wibox")
3
4 -- durations in seconds
5 pomodoro.short_pause_duration = 5 * 60
6 pomodoro.long_pause_duration = 30 * 60
7 pomodoro.work_duration = 25 * 60
8
9 -- format string
10 pomodoro.format = function (t) return " <b>"..t.."</b>" end
11
12 pomodoro.init()
13
14 pombox = wibox.layout.fixed.horizontal()
15 pombox:add(pomodoro.icon_widget)
16 pombox:add(pomodoro.widget)
17
18 globalkeys = awful.util.table.join(globalkeys,
19 awful.key({ modkey, "Shift" }, "p", function() pomodoro:start() end)
20 )
21
22 return pombox