This is perfect, thank you!

I ended up doing this to fix my issue:

tmux set-hook -g client-resized 'select-window -t 9 ; resize-pane -y 6 -t 1 
; last-window'

This resets my top pane in window 9 which was having issues when I would 
switch to a smaller overall ssh window.


On Thursday, July 16, 2020 at 3:21:01 PM UTC-7, Scott Rochford wrote:
>
> 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] <javascript:>> 
> 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] <javascript:>.
>> 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/852f847a-3627-4de5-a9b9-b0a9847a8a3co%40googlegroups.com.

Reply via email to