status line configuration | hardcopy command?

20 views
Skip to first unread message

Sven Guckes

unread,
Nov 21, 2020, 3:03:04 PM11/21/20
to tmux users
this is how my current session looks like:

[COMM] 0:EDIT_vim 1:SHELL_zsh 2:MAIL_neomutt- 9:IRC_irssi*M "kudu" 11:31 21-Nov-20
(0) 0: EDIT_vim "kudu"
(1) 1: SHELL_zsh "kudu"
(2) 2: MAIL_neomutt- "kudu"
(5) 9: IRC_irssi*M "kudu"

anyway, which commands and options do i use
to change the configuration of the status line?

i would like to see tmux identify with its version number ("tmux 2.3")
and rather see the hostname first as it is the same for all windows.
the numbering with brackets seem quite redundant to me,
so i'll got with "N:" only.

so the result should look like this:

tmux 2.3 Nov20 11:42 [kudu:COMM] 0:EDIT_vim 1:SHELL_zsh 2:MAIL_neomutt- 9:IRC_irssi*M
kudu 0: EDIT_vim
kudu 1: SHELL_zsh
kudu 2: MAIL_neomutt-
kudu 9: IRC_irssi*M

the display of date+time takes eleven characters.. i might drop that.
and of course i might just use some shorter titles
like EDIT+MAIL, IRC+RSS, vim+zsh.. ;-)

also:
i had to use the mouse within my
terminal to create a copy of this.

i noticed that while this menu is shown
or while i am in the command line
that i cannot use the copy mode
to document what i am doing in tmux.

is there someting like screen's hardcopy command
which takes a copy of the current screen and
puts this into a file?

while i'm at it..
is there an *option* to log in/out the processes from utmp
rather than building a new binary (without "utemper")?

i have tried installing tmux from the repository
from within my user account - but although
the libevent is definitely within my $HOME
the resulting tmux binary just won't find it. :-(

has anyone installed tmux within his user account?
i would definitely like to see an installation log.
mind you, all from scratch. so this takes tmux itself,
the libevent and libncurses, and bison/yacc now.

does a screen/session sharing (via "wemux")
require the binary to be set with SUID?

does tmux have a wait-for-silence command?

is it possible to end copy mode
also with a space like ENTER does?
i am still used to this from screen
and i simply keep mistyping it.. :-/

Sven

Nicholas Marriott

unread,
Nov 21, 2020, 3:13:04 PM11/21/20
to tmux users
Installing from source is here and the instructions definitely work. Did you remember to set LD_LIBRARY_PATH so ld.so can find the libevent library?


This and subsequent sections has stuff about options including the status line:


You will want #{version} for tmux version, #{host} or #{host_short} for hostname, look at the table in the man page or do "tmux display -pa" for the others.

You cannot copy from choose mode. capture-pane will copy pane content but not from modes.

You can change copy mode key bindings:

https://github.com/tmux/tmux/wiki/Getting-Started#key-bindings

Or just change "mode-keys" to "vi" to get vi style key bindings instead of emacs.


--
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 tmux-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/20201121110239.ugpjnb3iocfmbmgs%40guckes.net.

Jason White

unread,
Nov 22, 2020, 2:53:22 AM11/22/20
to Sven Guckes, tmux users
On Sat, Nov 21, 2020 at 12:02PM +0100, Sven Guckes wrote:
[...]
>is there someting like screen's hardcopy command
>which takes a copy of the current screen and
>puts this into a file?

More or less. https://unix.stackexchange.com/questions/45715/is-it-possible-to-get-a-hardcopy-in-tmux

>does tmux have a wait-for-silence command?

See 'monitor-silence'.

>is it possible to end copy mode
>also with a space like ENTER does?
>i am still used to this from screen
>and i simply keep mistyping it.. :-/

bind-key -Tcopy-mode Space if -F "#{selection_active}" "send-keys -X copy-selection" "send-keys -X begin-selection"

-Jason

--
Jason White
"The single biggest problem in communication is the illusion that it has taken place." - George Bernard Shaw
Reply all
Reply to author
Forward
0 new messages