News for hackers. Stuff that matters.
Re:Love Your Terminal by Derpsec on Friday November 30, 2012 @12:56AM (#4852061)
use tmux for multiple screens and ditch that xorg garbage.
Re:Love Your Terminal by richo on Friday November 30, 2012 @01:25AM (#4852121)
Calling Xorg garbage is naive.

Even if you only use terminals, and you have to have a framebuffer that supports that native resolution of your screen, you'll find that Xorg is nearly always more performant.

If you have issues with X11's security model that's a different story, I'd suggest trying http://wayland.freedesktop.org/

Re:Love Your Terminal by jlgreco on Friday November 30, 2012 @02:56AM (#4852327)
Using tmux in an X terminal emulator really gets you the best of all worlds. Good mouse support, performant as you mention, and if X really starts to give you hassle for some reason you can always seamlessly continue working in a VT or with putty if you really want to.
Re:Love Your Terminal by crazydiamond on Saturday December 01, 2012 @09:43AM (#4857730)
Could someone elaborate how x11/xterm compares to iTerm2? I've been using tmux in iTerm. After reading this discussion, i installed x11 and quartz-wm. Why would I switch to X11 ?

(I do notice that within tmux on iterm, i can use the mouse for selection (using Alt), but the mouse does not work in tmux in xterm.)

Re:Love Your Terminal by irahul on Friday November 30, 2012 @02:30AM (#4852265)
> use tmux for multiple screens and ditch that xorg garbage.

tmux for multiple screens instead of Xorg garbage? I think you don't know what Xorg is.

That doesn't make any sense. If you are referring to the screenshot, that's gnome-terminal's tabs.

Re:Love Your Terminal by rat87 on Friday November 30, 2012 @07:24AM (#4852933)
These days II mostly use tmux windows/panes instead of yakuake, but yakuake is still useful)terminal dropdown/retract or when my copy/paste breaks in tmux again(doesn't work well with mouse options).
Re:Love Your Terminal by __david__ on Friday November 30, 2012 @01:59AM (#4852188)
I don't understand why I'd want to use tmux locally. I'm a huge believer in tmux on remote machines though. Why would I want to use it on my local laptop?
Re:Love Your Terminal by jlgreco on Friday November 30, 2012 @02:52AM (#4852315)
In addition to the obvious multiplexing/windowing/paning, I find it great for creating named "work sessions". I have a short script that creates or attaches (with zsh autocompletion in the case of attaching) tmux sessions while creating a standardized filesystem tree that I use for units of "work", checking out things I need, etc.

This allows me to basically just type at any point `work foobar` and I'll either have a clean slate to start working on foobar, or I will be dropped into an existing tmux session 'foobar' that is exactly where I left off last time. Same 'tail -f'/'watch'es, same Vim sessions, same everything.

Besides regular units of work I usually keep a tmux session around just for database connections or the like, and another for messing around with environment stuff (dotfiles, ~/bin/, etc).

Most of this organization is stuff I used to do with virtual desktops, but I find tmux is wildly better suited for it.

Re:Love Your Terminal by mats_rauhala on Friday November 30, 2012 @02:15AM (#4852227)
Assuming you spend a lot of time in terminals, you can use it to group your tasks. For example I have tmux sessions for my bachelor's thesis which contains two windows, either of which contains two split panes. The left pane is for vim (which are split further) and the right pane are for ghci and terminal. If I change from writing the thesis to for example doing work I can just change the tmux session. The layout and content are just like I left them.
Re:Love Your Terminal by irahul on Friday November 30, 2012 @02:24AM (#4852251)
Say I am working on a rails project. I need vim open with root; I need rails server, console, dbconsole; I need one window at project root for misc task; and I prefer not to navigate with the mouse to different tabs. Personally, I vastly prefer tmux terminal multiplexing over terminal tabs.

Also, it doesn't happen frequently, but I have closed terminals which I didn't mean to. tmux/screen means that causes only minor inconvenience, compared to closing the terminal, opening it again, opening all tabs, dealing with swap files, re-running servers, dbconsoles etc.

Re:Love Your Terminal by Spakman on Friday November 30, 2012 @05:26AM (#4852665)
I've only ever seen people advocate for tmux locally who can't (or don't want to) run something like xmonad as their window manager.
Re:Love Your Terminal by th on Friday November 30, 2012 @09:12PM (#4856549)
I would recommend a primarily tmux-based workflow unless you use a number of graphical programs that benefit greatly from the tiling paradigm.

I used to use Xmonad with tmux (and still do sometimes). I primarily use Unity with tmux now. I came to the realization that tmux had nearly nullified my need for a tiling window manager after I switched from gVim to terminal vim and noticing how much easier it made my workflow. My "ah ha" moment was the discovery of the distinction between sessions, windows, and panes and how each could interact with (or sometimes transform into) the each other.

Re:Love Your Terminal by mats_rauhala on Friday November 30, 2012 @05:45AM (#4852692)
I'm a xmonad user and I use tmux. I agree that they both provide similar benefits, but the killer benefit for tmux is the persistence. I can have n sessions open and it's still easy to switch between them. Just disconnect the old one and attach to the new one. With xmonad you would either need to have many topic spaces (and recompile config when you want new one) or close the old ones
Re:Love Your Terminal by h2s on Friday November 30, 2012 @02:17AM (#4852228)
It can be useful to be able to open vertical splits running things like "watch jslint" or "watch rspec" while you code.
Re:Love Your Terminal by Dru89 on Friday November 30, 2012 @01:23AM (#4852116)
that first screenshot is actually just pulled from the internet. the third one (it was broken at first, then I fixed it) is from my laptop.

My desktop, however, doesn't use tmux right now. May be something that I look into in the near future because it looks interesting.

Re:Love Your Terminal by jameyc on Friday November 30, 2012 @01:26AM (#4852124)
Since you're on osx, you might look into iTerm2, which wraps tmux nicely and brings a few bells and whistles to the table.
Re:Love Your Terminal by derleth on Friday November 30, 2012 @04:32AM (#4852553)
tmux and Xorg don't even begin to attempt to try to solve the same kinds of problems.