class Thyme::Tmux

Overview

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)").

Defined in:

thyme/tmux.cr

Constant Summary

STATUS_INTERVAL = "status-interval"
TMUX_FILE = "#{ENV["HOME"]}/.thyme-tmux"
TMUX_STATUS_VAL = "'#(cat #{TMUX_FILE})'"

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : Thyme::Config) #

[View source]

Instance Method Detail

def init_status #

[View source]
def reset_status #

[View source]
def 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


[View source]