-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hi,
I've being trying to set this to work on my setup.
I have theme.lua separarated with rc.lua.
So I added
local awmodoro = require("awmodoro")
--pomodoro wibox
pomowibox = awful.wibox({ position = "top", screen = 1, height=4})
pomowibox.visible = false
local pomodoro = awmodoro.new({
minutes = 25,
do_notify = true,
active_bg_color = '#313131',
paused_bg_color = '#7746D7',
fg_color = {type = "linear", from = {0,0}, to = {pomowibox.width, 0}, stops = {{0, "#AECF96"},{0.5, "#88A175"},{1, "#FF5656"}}},
width = pomowibox.width,
height = pomowibox.height,
begin_callback = function()
for s = 1, screen.count() do
mywibox[s].visible = false
end
pomowibox.visible = true
end,
finish_callback = function()
for s = 1, screen.count() do
mywibox[s].visible = true
end
pomowibox.visible = false
end})
pomowibox:set_widget(pomodoro)
to my theme.lua and
and same lines +
awful.key({ modkey }, "p", function () pomodoro:toggle() end),
awful.key({ modkey, "Shift" }, "p", function () pomodoro:finish() end),
to my bindings.lua file.
I could only get notify-send from pomodoro:finish. But I cant get any reaction on pomodoro:toggle and I can't see any widgets on wibar. Wondering if this should work with the newer awesome?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels