WilliamHsieh / dotfiles

Personal dotfiles setup with nix and home-manager.
8 stars 0 forks source link

tmux: use activity-action to send display message to parent tmux #14

Open WilliamHsieh opened 12 months ago

WilliamHsieh commented 12 months ago
# NOTE: https://github.com/tmux/tmux/issues/1384
function tmux_notify() {
  if [[ "`tmux display -p '#{session_id}'`" != '$0' ]]; then
    tmux display "#{session_id} #{window_id}"
  fi
}
# TODO: ring bell every time a command finished, send to tmux
#       (send escape sequence to tmux host? \Ptmux?)
# bell:
#   command:
    # program: /opt/homebrew/bin/tmux
    # args: ["display", "Hello, World!"]