Class: Twterm::NotificationBackend::TmuxBackend

Inherits:
AbstractNotificationBackend show all
Defined in:
lib/twterm/notification_backend/tmux_backend.rb

Instance Method Summary collapse

Instance Method Details

#notify(notification) ⇒ void

This method returns an undefined value.

Parameters:



10
11
12
13
14
# File 'lib/twterm/notification_backend/tmux_backend.rb', line 10

def notify(notification)
  `tmux set-option display-time 3000`
  `tmux set-option message-style fg=black,bg=green`
  `tmux display #{Shellwords.escape(" [twterm] #{notification.fallback.gsub("\n", ' ')}")}`
end