Re: tmux with multiple monitors

2012-11-02 Thread Mark Volkmann
On Thu, Nov 1, 2012 at 5:02 PM, Aaron Schrab  wrote:
> At 10:40 -0500 01 Nov 2012, Mark Volkmann  wrote:
>>The only issue is that it seems that the number of rows and columns of
>>characters displayed in each iTerm window must be the same. Extra space
>>in the larger window is filled with period characters.
>
> set-window-option -g aggressive-resize on

I'm not seeing a change from that option. Here's what I did:
* added option to ~/.tmux.conf
* killed all sessions
* created new session in large terminal window
* attached to same session from small terminal window on different monitor
* saw that the large window got filled with periods on right and bottom sides
  so it only used same number of rows and columns as small window

-- 
R. Mark Volkmann
Object Computing, Inc.

--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: tmux with multiple monitors

2012-11-02 Thread Thomas Adam
On 2 November 2012 13:16, Mark Volkmann  wrote:
> I'm not seeing a change from that option. Here's what I did:
> * added option to ~/.tmux.conf
> * killed all sessions

This may or may not be the same thing as "kill-session" depending on
how you did it.

So I would kill the server and try again.

-- Thomas Adam

--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: tmux with multiple monitors

2012-11-02 Thread Mark Volkmann
On Fri, Nov 2, 2012 at 8:20 AM, Thomas Adam  wrote:

> On 2 November 2012 13:16, Mark Volkmann  wrote:
> > I'm not seeing a change from that option. Here's what I did:
> > * added option to ~/.tmux.conf
> > * killed all sessions
>
> This may or may not be the same thing as "kill-session" depending on
> how you did it.
>
> So I would kill the server and try again.
>

I used "tmux kill-session -t {session-name}".
Then I ran "tmux ls" to verify that I had no sessions running.
I created my session again.
>From inside the session I entered command mode, ran
"show-window-options -g", and verified that aggressive-resize is on.
I opened a new terminal window and ran "tmux attach -t {session-name}".
I saw the same result. The large window got reduced in size by filling
most of the space with periods.

Maybe the key is that I can only get different window sizes if each
terminal window is viewing a different window within the session. When I
switch windows within one of the clients, the other switches to the same
window. What do I have to do to attach to the same session from two clients
and have each client view a different window in the session?

-- 
R. Mark Volkmann
Object Computing, Inc.
--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: tmux with multiple monitors

2012-11-02 Thread Thomas Adam
On 2 November 2012 13:42, Mark Volkmann > What do I have to do to
attach to the same session from two clients and have
> each client view a different window in the session?

Use grouped-sessions.  See "man tmux".

-- Thomas Adam

--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: tmux with multiple monitors

2012-11-02 Thread Mark Volkmann
On Fri, Nov 2, 2012 at 8:50 AM, Thomas Adam  wrote:

> On 2 November 2012 13:42, Mark Volkmann > What do I have to do to
> attach to the same session from two clients and have
> > each client view a different window in the session?
>
> Use grouped-sessions.  See "man tmux".
>

Mystery solved! Thank you so much!

I was using "tmux attach -t {session-name}" from the second terminal
window, but I needed to use "tmux new -t {session-name}".

-- 
R. Mark Volkmann
Object Computing, Inc.
--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: Python Scripting

2012-11-02 Thread Philip Herron
On 3 November 2012 01:04, Philip Herron  wrote:
> Hey
>
> Not sure if this patches will ever be useful to anyone but i decided i
> wanted to be able to add commands to tmux in python as i wanted to
> interact in a nice way with my system. So i made these patches.
>
> You compile with:
>
> sh autogen.sh
> ./configure --enable-python
> make
>
> pyscript script.py
>
> It checks currently in $HOME/tmux.conf.d/script.py
> But i hard coded a test in the exec command to run tmux-test.py you
> can then run the command:
>
> pytest
>
> This is a silly command to open a web page on your broswer just to
> have a visual test. This is all very initial its just a small pet
> project i will work on time to time. To access the code its probably
> simpliest to use:
>
> git remote add python git://buildy.org/tmux.git
> git fetch python
> git checkout --track -b python-scripting python/python-scripting
>
> Might be interesing to someone :). But i don't know if its in the
> spirit of tmux to have this as default feature. But i think its nice.
>
> The python so far is:
>
> import tmux
>
> You can iterate over the dictionary:
>
> __TMUX_COMMANDS
> I am working on support where you can access the cmd_entry and execute
> the commands most of the code is there just needs finished so you
> could script your tmux in python
>
> def callable_python ():
>   pass
>
> tmux.append_command ("name", callable_python)
> Thats how easy it is to add a command to tmux in python just pass a
> callable function.
>
> --Phil

Worth noting the configure looks for python-config

--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


script to maximize/restore panes

2012-11-02 Thread Kazuhiko Sakaguchi
Hi all.

I wrote a script to maximize and restore panes in tmux.  It's similar
to the tmux-zoom.

https://gist.github.com/3901976

Idea of tmux-zoom is awesome, but it has some problems.
- If title of the zoomed pane is changed, tmux-zoom can't restore the
pane correctly.
- tmux-zoom may kills a non-related window. (e.g. after rotate-window)
- tmux-zoom can zoom pane that it's already zoomed.
- incompatible with tmux 1.7
- etc.
pane-maximize solves those problems. Please add this script to examples/.

Thanks.

--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users