from Hacker News

Show HN: Cockpit – create tmux panes and windows with ease

by jaisonjustus on 10/9/17, 11:34 AM with 47 comments

  • by catern on 10/9/17, 5:52 PM

    It's quite an indictment of the current state of our tooling (not just tmux) that such an application as this is necessary. Why isn't it easy to configure this in tmux itself, and persist the resulting configuration?
  • by _ix on 10/10/17, 1:34 AM

    This looks really nice!

    It's not for me, though. Maybe I'm not a very good systems engineer, but I've got a decent .tmux.conf. Between writing automation and trying to make sense of the mess I've inherited, I'm constantly splitting, resizing, and re-adjusting my work space to suit the task at hand.

  • by joshuamcginnis on 10/9/17, 6:33 PM

    Neat. I personally use https://github.com/tmuxinator/tmuxinator for this.
  • by mmahemoff on 10/9/17, 8:45 PM

    Nice tool. I suggest showing the script beside the window so it can easily be cut-and-pasted. Browser downloading is a hassle especially with tmux on a remote server.
  • by vhodges on 10/10/17, 2:29 AM

    I was using tmuxinator for this, but found that all of my sessions were essentially the same thing except for the name and the working directory.

    So I just wrote a shell script that takes a directory, using basename for the session name, starting up what ever windows and panes it needs to. I have two variants, one for generic dev stuff (shell and an editor) and the other is for rails work (shell, editor, logs, rails db and a rails c in the last window).

    https://github.com/vhodges/dotfiles/blob/master/utils/bin/tm... or https://github.com/vhodges/dotfiles/blob/master/utils/bin/tm...

  • by spinningarrow on 10/10/17, 5:39 AM

    Nice work. I’ve been using teamocil (https://github.com/remiprev/teamocil) so far (which is doubly nice because its configs can be used with plain iterm via itermocil) but will take a look at this too!
  • by recentdarkness on 10/10/17, 2:16 AM

    Please try to use a different name this clashes quite with http://cockpit-project.org/

    But otherwise it’s a nice tool

  • by tux1968 on 10/9/17, 11:09 PM

    How do you create 3 equal sized horizontal windows with Cockpit?
  • by snarain on 10/11/17, 5:28 AM

    Great job, this is something that I'd definitely use - especially when I can't be bothered with installing extra gems.
  • by anilgulecha on 10/10/17, 6:09 PM

    I use tmuxomatic, which is very simple to use with it's visual layout. Works really well.

    https://github.com/oxidane/tmuxomatic

  • by timvdalen on 10/11/17, 12:17 PM

    Nice application!

    I found a small bug: When you have an edit field open and try to open another one (command/session name/window name), the second one will just be cleared to blank.

  • by oso2k on 10/10/17, 5:18 AM

    This is awesome. Side note, you may want to rename your project to avoid a clash with kubernetes' cockpit UI for kubernetes cluster monitoring.
  • by humanfromearth on 10/9/17, 8:55 PM

    There is a bug when you close windows (the round yellow thing remains). Also can you name the windows?
  • by muxator on 10/9/17, 9:23 PM

    The layout seems to be broken on Firefox for Android. The pane with the demo fully covers the text
  • by rudedogg on 10/9/17, 7:12 PM

    I thought about building something like this every time I messed with tmuxinator layouts. Nice!
  • by Willson50 on 10/9/17, 7:08 PM

    What I want is iTerm2 hotkeys for tmux so I don't have to remember both.