Class: Twterm::NotificationBackend::TmuxBackend
- Inherits:
-
AbstractNotificationBackend
- Object
- AbstractNotificationBackend
- Twterm::NotificationBackend::TmuxBackend
- 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.
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 |