Re: tmux 2.7-rc

2018-03-22 Thread Thomas Sattler
Hi there ... the following command creates a broken layout: $ tmux-2.7-rc new-session \; split-window \; split-window \; select-layout -E \; select-pane -t 1 \; split-window -h \; split-window -h \; select-pane -t 2 \; select-layout -E \; split-window \; split-window \; select-layout -E It

Re: tmux 2.7-rc

2018-03-22 Thread Nicholas Marriott
I think this fixes it: Index: layout.c === RCS file: /cvs/src/usr.bin/tmux/layout.c,v retrieving revision 1.34 diff -u -p -r1.34 layout.c --- layout.c12 Jan 2018 10:16:03 - 1.34 +++ layout.c22 Mar 2018 14:26:21 -

tmux 2.7-rc

2018-03-22 Thread Nicholas Marriott
Hi all I have the first 2.7 release candidate: https://github.com/tmux/tmux/releases/tag/2.7 https://github.com/tmux/tmux/releases/download/2.7/tmux-2.7-rc.tar.gz https://raw.githubusercontent.com/tmux/tmux/2.7/CHANGES As always please test and report any issues. Thanks -- You received

Re: complete list of customisable keywords?

2018-03-22 Thread Nicholas Marriott
In the manual perhaps? :-) On Thu, Mar 22, 2018 at 11:10:40AM +0530, Sivaram Neelakantan wrote: > I just realised that I can't make sense of the .tmux.conf file because > I can't remember what setw, -n, #P and other options stand for. Is there > a single location where all the config options

Re: tmux 2.7-rc

2018-03-22 Thread Thomas Sattler
Am 22.03.2018 um 15:27 schrieb Nicholas Marriott: I think this fixes it: Seems to be fixed. Thomas -- 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

Re: simulate a toggle

2018-03-22 Thread Helmut K. C. Tessarek
It still does not work. I believe the variable is only interpreted the first time when the config file is read. Please try the following: bind C-b if -F '#{TPCS}' \ 'setenv -g TPCS 0; display-message "TPCS=0"' \ 'setenv -g TPCS 1; display-message "TPCS=1"' If you try it, you'll

simulate a toggle

2018-03-22 Thread Helmut K. C. Tessarek
I'm trying to simulate a toggle*, but the following does not work: TPCS=1 unbind C-b bind C-b if "if [ x$TPCS == x1 ]; then true; else false; fi" \ 'set -g window-style "fg=default,bg=default" ; set -g window-active-style "fg=default,bg=default" ; setenv -g TPCS 0' \ 'set -g

Re: simulate a toggle

2018-03-22 Thread Nicholas Marriott
It is definitely possible. Did you try a user option instead of an environment variable? On Thu, 22 Mar 2018, 18:39 Helmut K. C. Tessarek, wrote: > I tried that too. It does not work. So maybe this use-case is not > supported or possible. > > Too bad, I really would have

Re: simulate a toggle

2018-03-22 Thread Nicholas Marriott
I can't try it now. #{} is not expanded in config file. But $ might be. On Thu, 22 Mar 2018, 18:14 Helmut K. C. Tessarek, wrote: > It still does not work. I believe the variable is only interpreted the > first time when the config file is read. > > Please try the

Re: simulate a toggle

2018-03-22 Thread Helmut K. C. Tessarek
Eureka! Great idea. This worked: bind C-b if -F '#{@TPCS}' \ 'set -g @TPCS "0"; display-message "TPCS=0"' \ 'set -g @TPCS "1"; display-message "TPCS=1"' Cheers, K. C. On 2018-03-22 14:42, Nicholas Marriott wrote: > It is definitely possible. Did you try a user option instead of an >

Re: simulate a toggle

2018-03-22 Thread Nicholas Marriott
Great. I don't know why an environment variable didn't work, it seems like it should. I'll take a look when I get home. On Thu, 22 Mar 2018, 19:03 Helmut K. C. Tessarek, wrote: > Eureka! Great idea. > > This worked: > > bind C-b if -F '#{@TPCS}' \ > 'set -g @TPCS "0";

Re: simulate a toggle

2018-03-22 Thread Nicholas Marriott
Try if -F '#{TPCS}' Or maybe $TPCS I forget. On Thu, 22 Mar 2018, 17:34 Helmut K. C. Tessarek, wrote: > I'm trying to simulate a toggle*, but the following does not work: > > TPCS=1 > > unbind C-b > bind C-b if "if [ x$TPCS == x1 ]; then true; else false; fi" \ >

Re: simulate a toggle

2018-03-22 Thread Nicholas Marriott
It is #{}. $ tmux setenv -g FOO 1 $ tmux if -F '#{FOO}' 'run "echo yes >/tmp/foo"' 'run "echo no >/tmp/foo"' $ cat /tmp/foo yes $ tmux setenv -g FOO 0 $ tmux if -F '#{FOO}' 'run "echo yes >/tmp/foo"' 'run "echo no >/tmp/foo"' $ cat /tmp/foo no $ tmux setenv -gu FOO $ tmux if -F '#{FOO}' 'run

Re: simulate a toggle

2018-03-22 Thread Helmut K. C. Tessarek
I like the idea of a "local" variable (user option) even better than using an env variable. At least for the toggle thingy. I just didn't know that this was possible. But yea, an env var should work too. Cheers, K. C. On 2018-03-22 15:04, Nicholas Marriott wrote: > Great. I don't know why an

tmux ls -F formatting with shell command

2018-03-22 Thread Matt Zagrabelny
Greetings, I attempting to format the output of tmux ls -F: $ tmux ls -F "#{session_name}: #(/home/user/tmux-utils/process-display #{pane_pid})" | head -1 189: <'/home/user/tmux-utils/process-display 8726' not ready> I rerun the above command a few times and each time the "not ready" is