]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/widgets/pomodoro.lua
lazyvim: absorb icons into rmz.util.ui
[dotfiles.git] / awesome / widgets / pomodoro.lua
index b6e9116a33556f01001ddf94aa932125cff93f64..096952c470395278305b923939203710306764ce 100644 (file)
@@ -1,6 +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
@@ -13,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)
 
@@ -22,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 ()
-    awful.spawn(terminal.." -name diary -e diary")
+    awful.spawn(terminal, {floating = true, placement = awful.centered })
 end)
 
 globalkeys = gears.table.join(globalkeys,