Hi Cyphr3x,

I haven't tried it myself, but usually you use hooks to run commands based
on events.  Some of those are listed in the HOOKS section of the man page,
however that states "All the notifications listed in the CONTROL MODE
section are hooks...".  One of those is "window-pane-changed", so I suspect
that is the one you need.

Regards,

Scott

On Fri, 17 Jul 2020 at 03:28, cyphr3x <[email protected]> wrote:

> Hello,
>   When selecting a tmux window is there a way to auto run a command?
>
> (not creating, selecting)
>
> --
> You received this message because you are subscribed to the Google Groups
> "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/tmux-users/ccdb2077-b285-48e7-a5ed-f501fbed3055o%40googlegroups.com
> <https://groups.google.com/d/msgid/tmux-users/ccdb2077-b285-48e7-a5ed-f501fbed3055o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/tmux-users/CAAqsAtSufsbkObp5bmKFYJFeZydiLH%3DaiHRrqvmwRV6O%3DsdewA%40mail.gmail.com.

Reply via email to