]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/widgets/pomodoro.lua
nvim: replace lazyvim map with vim.keymap.set
[dotfiles.git] / awesome / widgets / pomodoro.lua
index ff158c1a8fc9cc3edd48a21960841d3ab5fcc745..096952c470395278305b923939203710306764ce 100644 (file)
@@ -14,7 +14,7 @@ pomodoro.auto_start_pomodoro = false
 
 pomodoro.init()
 
-pombox = wibox.layout.fixed.horizontal()
+local pombox = wibox.layout.fixed.horizontal()
 pombox:add(pomodoro.icon_widget)
 pombox:add(pomodoro.widget)
 
@@ -23,7 +23,7 @@ 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 ()
-    utils.spawn_terminal("diary", { instance = "diary" })
+    awful.spawn(terminal, {floating = true, placement = awful.centered })
 end)
 
 globalkeys = gears.table.join(globalkeys,