X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/172cfbb4b15794f9dd12a4531e6ba6b8f0edbb2a..2bc5cc531c50d87c208965cdc80c0f42df56ecb1:/awesome/widgets/pomodoro.lua?ds=inline diff --git a/awesome/widgets/pomodoro.lua b/awesome/widgets/pomodoro.lua index 7e7a5c1..ff158c1 100644 --- a/awesome/widgets/pomodoro.lua +++ b/awesome/widgets/pomodoro.lua @@ -1,5 +1,7 @@ local pomodoro = require("widgets/pomodoro/init") local wibox = require("wibox") +local awful = require("awful") +local utils = require("utils") -- durations in seconds pomodoro.short_pause_duration = 5 * 60 @@ -21,10 +23,10 @@ pombox:add(pomodoro.widget) -- 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("work_stop", function () - awful.spawn(terminal.." -name diary -e diary") + utils.spawn_terminal("diary", { instance = "diary" }) end) -globalkeys = awful.util.table.join(globalkeys, +globalkeys = gears.table.join(globalkeys, awful.key({ modkey, "Shift" }, "p", function() pomodoro:toggle() end) )