I try to synchronize a cairo surface's update with my textclock refresh.
Is it possible to hook a gears.timer to textclock's one? or should I create a textbox and use the same gears.timer to update both?
I try to synchronize a cairo surface's update with my textclock refresh.
Is it possible to hook a gears.timer to textclock's one? or should I create a textbox and use the same gears.timer to update both?
Copyright © 2021 Jogjafile Inc.
By default, not without using private APIs, which is not recommended (
mytextclock._timer).However, a better alternative is to create a timer, then create your own textclock using a
wibox.widget.textboxwhen it timeouts. It can be done in 1 line usingos.date