Thyme::Tmux
Inherits Reference / Object
Handles communication with Tmux. Before/after all pomodoros, the status will be init/reset. Every second, the timer will call #set_status with the new label (eg "4:25 (3/4)").
Constants
STATUS_INTERVAL = "status-interval"
TMUX_FILE = "#{ENV["HOME"]}/.thyme-tmux"
TMUX_STATUS_VAL = "'#(cat #{TMUX_FILE})'"
Constructors
new(config : Thyme::Config)
Instance methods
init_status
reset_status
set_status(status)
Originally tried to set the status directly via a system call to tmux set-option,
but ran into a consistent FileDescriptor and END_OF_STACK exceptions being raised.
See https://github.com/crystal-lang/crystal/issues/3219