Bonus: Learning tmux

Never let it be said that I was afraid to try new things.

2013-02-01-solo-2150-desktop

I’m slowly moving from screen to tmux — not for any lack of enthusiasm for the former, just because it’s important to find alternatives. πŸ™‚

I like it. It picks up a lot of features that I wish were in screen — like the concept of panes, or being able to arrange a layout on startup. And switching between panes in tmux is far easier than screen’s tab cycles.

Some of it is still a little shaky though. And I really wish there was something equivalent to screen’s idle option, but I can’t find one.

Still, it keeps me busy. Perhaps sometime soon I shall find time to investigate Herbstluftwm, and move away from Musca. Gasp! 😯

14 thoughts on “Bonus: Learning tmux

  1. Don

    Ah, but you can autolock tmux. From the man page:
    lock-after-time number
    Lock the session (like the lock-session command) after number seconds of inactivity, or the entire server (all sessions) if the lock-server option is set. The default is not to lock (set to 0).

    lock-command shell-command
    Command to run when locking each client. The default is to run lock(1) with -np.

    lock-server [on | off]
    If this option is on (the default), instead of each session locking individually as each has been idle for lock-after-time, the entire server will lock after all sessions would have locked. This has no effect as a session option; it must be set
    as a global option.

    1. K.Mandla Post author

      I knew if I just asked the Internet, someone would tell me how to do it. Thanks, Don and Matt. I’ll see if I can get this to funnel through my ordinary screensaver scripts. Cheers!

  2. scoobertron

    I am an enormous fan of Herbstluftwm so I think it is well worth a look. The use of bash makes it really easy to write hacky scripts to accomplish stuff, like piping window names to dmenu to make window switching easier.

  3. Matt

    Can’t you just set `lock-after-time` to the number of seconds you want `tmux` to wait and then `lock-command` to `cmatrix` or `pipes.sh` or whatever? This seems to work for me…

    set -g lock-after-time 300
    set -g lock-command /usr/local/bin/cmatrix

  4. Gutterslob

    Good to see you’re finally ‘upgrading’ to tmux. Isn’t it nice to have a conf file that’s in plain English (rather than screen’s Klingon) for a change?

    1. K.Mandla Post author

      Sure, but to be honest, I mostly stumbled around the man pages before settling on a default config that I liked.

      I am sure there are some very good tutorials out there though. I should check; I am probably missing a lot of good information by virtue of my laziness. 😦

  5. Pingback: dtach: Beauty in sparsity | Inconsolation

  6. Pingback: XaoS: Off to a good start | Inconsolation

  7. Pingback: screen: The granddaddy of terminal multiplexers | Inconsolation

  8. Pingback: scrollz: Fast, friendly and light | Inconsolation

  9. Pingback: splitvt: Under the most dire of circumstances | Inconsolation

Comments are closed.