Hmm. What tmux version is this?
I'm attaching my full config (although I did test it with the minimal one as
well). With #(echo test) as currently set in the config I see no output
(most of the time, with only occasionally 'test' showing up)
Post by Nicholas MarriottSo what do you see when you use "echo test" instead?
What exactly do you have in .tmux.conf?
No... The script is really simple - all it does is decide what to use as an
active pane title and output it (since I wasn't happy with the tmux pane
#!/usr/bin/perl
use Sys::Hostname;
chomp (my $name = `tmux display-message -p "#{pane_title}"`);
chomp (my $cmd = `tmux display-message -p "#{pane_current_command}"`);
my $title = '';
if ( $cmd eq "zsh" ) { $title = hostname; }
elsif ( $name eq hostname ) { $title = $cmd; }
else { $title = $name; }
if ( length $title > 99 ) { print substr "$title", 0, 96 ; print "...";
}
else { print "$title"; }
It always outputs a single non-empty line of maximum width 99
(status-right-length is 120, date is 21). Don't even know why I felt like
using perl instead of simple bash and GNU utils, but I guess it makes no
difference.
Post by Nicholas MarriottIs the script occasionally outputting blank lines? Because that will
clear what tmux got from the script before.
The script works perfectly and the length isn't an issue either (it's set to
a much larger value than <length of date> + <length of 'test' string>, plus
the output shows up at random times)... What strikes me is that while it
used to work, I did not change anything about the script, nor tmux config,
nor anything else tmux related.
Post by Nicholas MarriottAre you sure it isn't something silly like the right-hand side being
chopped off because your status-right-length is too short?
Does the script work as expected if you run it from the shell with eg
'while :; do myscript; sleep 1; done'?
Post by Aleksandrina Nikolovatest <date>
but I only see the date. The fact that it works fine on your system
maybe confirms my suspicion that the problem is not in tmux. It used to
work fine - the perl script whose output I use in the status was
displaying correctly all the time. About a month ago, I transitioned
from "stable" to "testing" branch on my Linux distro (Gentoo) and
updated a lot of packages though tmux was not one of them; the issue
appeared then and I was forced to drop the use of an external command in
the status, hoping it would be resolved in an update soon. I will get a
list of all packages updated that day and try to figure out which one's
the culprit, but I am at a loss as to what could be causing such a
behaviour.
Post by Thomas AdamPost by Aleksandrina NikolovaHi, thanks for replying. I used a minimal .tmux.conf and started a new
run job 0xd1c300: echo test, pid 26803
job write 0xd1c300: echo test, pid 26803, output left 0
job error 0xd1c300: echo test, pid 26803
but I don't know how to interpret that.
That looks correct. Indeed, for me, I see the status line update every
second, as I'd expect it to.
Are you saying with your config above, this isn't the case? What are
you expecting to see in status-right which you're not seeing?
-- Thomas Adam
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
tmux-users mailing list
https://lists.sourceforge.net/lists/listinfo/tmux-users
set -g assume-paste-time 1
set -g base-index 0
set -g bell-action any
set -g bell-on-alert on
set -g default-command ""
set -g default-terminal screen-256color
set -g destroy-unattached off
set -g detach-on-destroy on
set -g display-panes-active-colour green
set -g display-panes-colour white
set -g display-panes-time 1000
set -g display-time 1500
set -g history-limit 5000
set -g lock-after-time 0
set -g lock-server on
set -g message-attr none
set -g message-bg green
set -g message-command-attr none
set -g message-command-bg black
set -g message-command-fg green
set -g message-command-style fg=green,bg=black
set -g message-fg black
set -g message-limit 100
set -g message-style fg=black,bg=green,none
set -g mouse-resize-pane off
set -g mouse-select-pane off
set -g mouse-select-window off
set -g mouse-utf8 on
set -g pane-active-border-bg default
set -g pane-active-border-fg green
set -g pane-active-border-style fg=green
set -g pane-border-bg default
set -g pane-border-fg default
set -g pane-border-style default
set -g prefix C-b
set -g renumber-windows on
set -g repeat-time 300
set -g set-remain-on-exit off
set -g set-titles off
set -g set-titles-string "#S:#I:#W - #T"
set -g status on
set -g status-attr none
set -g status-bg default
set -g status-fg white
set -g status-interval 1
set -g status-justify left
set -g status-keys emacs
set -g status-left ""
set -g status-left-attr none
set -g status-left-bg default
set -g status-left-fg default
set -g status-left-length 15
set -g status-left-style default
set -g status-position bottom
set -g status-right "#(echo test)"
#set -g status-right "#($HOME/.tmux_scripts/set_stat_bar) %a, %d %b %H:%M:%S"
#set -g status-right "#T %a, %d %b %H:%M:%S"
set -g status-right-attr none
set -g status-right-bg default
set -g status-right-fg default
set -g status-right-length 120
set -g status-right-style default
set -g status-style fg=white
set -g status-utf8 on
set -g visual-activity off
set -g visual-bell off
set -g visual-content off
set -g visual-silence off
setw -g aggressive-resize on
setw -g allow-rename off
setw -g alternate-screen on
setw -g automatic-rename on
setw -g automatic-rename-format "#{pane_current_command}"
setw -g c0-change-trigger 100
setw -g c0-change-interval 100
setw -g clock-mode-colour white
setw -g clock-mode-style 24
setw -g force-height 0
setw -g force-width 0
setw -g main-pane-height 35
setw -g main-pane-width 90
setw -g mode-attr none
setw -g mode-bg green
setw -g mode-fg black
setw -g mode-keys emacs
setw -g mode-mouse off
setw -g mode-style fg=black,bg=green
setw -g monitor-activity off
setw -g monitor-content ""
setw -g monitor-silence 0
setw -g other-pane-height 0
setw -g other-pane-width 0
setw -g pane-base-index 0
setw -g remain-on-exit off
setw -g synchronize-panes off
setw -g utf8 on
setw -g window-status-activity-attr reverse
setw -g window-status-activity-bg default
setw -g window-status-activity-fg default
setw -g window-status-activity-style reverse
setw -g window-status-attr none
setw -g window-status-bell-attr reverse
setw -g window-status-bell-bg default
setw -g window-status-bell-fg red
setw -g window-status-bell-style fg=red,reverse
setw -g window-status-bg default
setw -g window-status-content-attr reverse
setw -g window-status-content-bg default
setw -g window-status-content-fg default
setw -g window-status-content-style reverse
setw -g window-status-current-attr bold
setw -g window-status-current-bg default
setw -g window-status-current-fg default
setw -g window-status-current-format "#I:#W"
setw -g window-status-current-style bold
setw -g window-status-fg default
setw -g window-status-format "#I:#W#F"
setw -g window-status-last-attr none
setw -g window-status-last-bg default
setw -g window-status-last-fg default
setw -g window-status-last-style default
setw -g window-status-separator " "
setw -g window-status-style default
setw -g wrap-search on
setw -g xterm-keys off
#################### KEYBINDINGS ####################
unbind -a
bind ':' command-prompt
bind '$' command-prompt -I "#S" -p "Rename current session:" "rename-session '%%'"
bind \; last-pane
bind '?' list-keys
bind '~' show-messages
bind '|' split-window -h
bind '-' split-window -v
bind '}' swap-pane -D
bind '{' swap-pane -U
bind C-b send-prefix
bind C-r rotate-window -U
bind C-z suspend-client
bind C-Space previous-layout
bind -r C-Down resize-pane -D
bind -r C-Left resize-pane -L
bind -r C-Right resize-pane -R
bind -r C-Up resize-pane -U
bind M-1 select-layout even-horizontal
bind M-2 select-layout even-vertical
bind M-3 select-layout main-horizontal
bind M-4 select-layout main-vertical
bind M-5 select-layout tiled
bind M-n next-window -a
bind M-p previous-window -a
bind M-IC choose-buffer
bind -r M-Down resize-pane -D 5
bind -r M-Left resize-pane -L 5
bind -r M-Right resize-pane -R 5
bind -r M-Up resize-pane -U 5
bind 0 select-window -t :0
bind 1 select-window -t :1
bind 2 select-window -t :2
bind 3 select-window -t :3
bind 4 select-window -t :4
bind 5 select-window -t :5
bind 6 select-window -t :6
bind 7 select-window -t :7
bind 8 select-window -t :8
bind 9 select-window -t :9
bind a choose-session
bind b break-pane
bind B run-shell "/home/aleksandrina/.tmux_scripts/move-pane -v"
bind M-b run-shell "/home/aleksandrina/.tmux_scripts/move-pane -h"
bind d detach-client
bind f command-prompt -p "Find window by name:" "find-window '%%'"
bind i display-message
bind k confirm-before -p "Kill current session? (y/n)" kill-session
bind K confirm-before -p "Kill server? (y/n)" kill-server
bind l last-window
bind m run-shell /home/aleksandrina/.tmux_scripts/monitor-window
bind -r n next-window
bind o new-window
bind -r p previous-window
bind r rotate-window -D
bind s command-prompt -I /home/aleksandrina/.tmux.conf -p "Source file:" "source-file '%%'"
bind w choose-tree -u
bind x confirm-before -p "Kill current pane? (y/n)" kill-pane
bind X confirm-before -p "Kill current window? (y/n)" kill-window
bind z resize-pane -Z
bind Space next-layout
bind PageDown copy-mode
bind PageUp copy-mode -u
bind IC paste-buffer
bind -r Down select-pane -D
bind -r Left select-pane -L
bind -r Right select-pane -R
bind -r Up select-pane -U
bind -t emacs-copy -n M-w copy-pipe "xsel -bi"
bind -t emacs-copy -n b page-up