Live data from Hacker News

Show HN: Terminal Multiplexer Inspired by I3

github.com

11–20 of 45 posts

Re: Show HN: Terminal Multiplexer Inspired by I3

#11
How about the memory usage?

Can you (easily) nest 3mux like tmux with (auto-)grouped sessions to produce a (max) 9x9 "grid" of windows to organize your remote hosts, and their windows into an easily accessible structure. (I use this to be able to reach any window in any other terminal window on any host with max 4 keypresses)

Why choose Go? Just curious.

Re: Show HN: Terminal Multiplexer Inspired by I3

#12

How about the memory usage? Can you (easily) nest 3mux like tmux with (auto-)grouped sessions to produce a (max) 9x9 "grid" of windows to organize your remote hosts, and their windows into an easily accessible structure. (I use this to be able to reach any window in any other terminal window on any host with max 4 keypresses) Why choose Go? Just curious.

> How about the memory usage?

The biggest thing stored by 3mux should be the state of the terminal screen, so memory usage should be negligible.

> Can you (easily) nest 3mux like tmux with (auto-)grouped sessions to produce a (max) 9x9 "grid" of windows to organize your remote hosts, and their windows into an easily accessible structure. (I use this to be able to reach any window in any other terminal window on any host with max 4 keypresses)

This is an awfully specific request. However, I plan to soon add support for workspaces, which should give the user access to, for example, 40 panes within 2 keypresses, given a hypothetical 10 workspaces and 4 panes per workspace.

> Why choose Go? Just curious.

Good question! I chose Go for its go routines and channels. I somewhat wish I used Rust simply because of its elegance. 3mux's performance bottleneck right now is completely IO, so I don't think moving to Rust would make a noticeable difference to the end user apart from the installation process.

Re: Show HN: Terminal Multiplexer Inspired by I3

#13
post #3

This looks awesome! The modifier key seems to be Alt, which is also default on desktop i3 windows manager. I wonder if it's going to interfere - eg. pressing Alt+Enter will simultaneously open new window both in multiplexer and on my desktop?

> This looks awesome!

Thank you!!

> I wonder if it's going to interfere

My understanding is that i3 would intercept the keypress, not passing it onto the terminal. While I want 3mux to work with i3, I decided to choose defaults that appeal to the audience that would need 3mux most (i.e. non-i3 users). I plan to soon make the key bindings configurable.

Re: Show HN: Terminal Multiplexer Inspired by I3

#14

How about the memory usage? Can you (easily) nest 3mux like tmux with (auto-)grouped sessions to produce a (max) 9x9 "grid" of windows to organize your remote hosts, and their windows into an easily accessible structure. (I use this to be able to reach any window in any other terminal window on any host with max 4 keypresses) Why choose Go? Just curious.

> How about the memory usage? The biggest thing stored by 3mux should be the state of the terminal screen, so memory usage should be negligible. > Can you (easily) nest 3mux like tmux with (auto-)grouped sessions to produce a (max) 9x9 "grid" of windows to organize your remote hosts, and their windows into an easily accessible structure. (I use this to be able to reach any window in any other terminal window on any h…

Thank you for replying!

I described my workflow, because since I discovered automatically grouped sessions on TMUX, I'd never want to use a terminal multiplexer without that, or comparable functionality.

What I do:

* Open new terminal with a hot-key

* This terminal automatically joins my local (default) session group

* All windows in this session group are now available

* Most windows connect to remote TMUXs

* With CTRL+ 4 keypresses I can navigate to any preexisting window/session, or create a new one locally (or on a remote host)

* After using the window, either i close the terminal, and/or the window, depending on if i want to keep this one.

* On the remote end, people can join my sessions, and can independently of me navigate in the remote window space.

* if I need to concurrently see two (probably different) windows of my local/remote window grid, I just open/auto-attach another terminal.

* the above makes it easy to "place another live tmux view" on a screen different than my main screen, for presentation, or teaching purposes.

Everybody (who previously used tmux in non-grouped mode) I've shown/explained this setup to, has setup their environment just like it afterwards.

Thanks for the other info too :)

Re: Show HN: Terminal Multiplexer Inspired by I3

#16
Excellent!!! I think this is exactly what I have been wishing for (fro quite some time now)!

I am not quite ready to make the switch to i3 as a WM, (I'm still fairly 'new' in the Ubuntu world, so still need the GUI to help me find settings that I don't know the name of thus how to access via a CLI) this brings me all the great features for my terminal (just like you stated).

This is now the first item on my TODO list for testing new SW :-)

Re: Show HN: Terminal Multiplexer Inspired by I3

#17
post #16

Excellent!!! I think this is exactly what I have been wishing for (fro quite some time now)! I am not quite ready to make the switch to i3 as a WM, (I'm still fairly 'new' in the Ubuntu world, so still need the GUI to help me find settings that I don't know the name of thus how to access via a CLI) this brings me all the great features for my terminal (just like you stated). This is now the first item on my TODO list…

You should give https://regolith-linux.org/ a try. It's a Ubuntu based distro with i3 as WM. They have polished a few things here and there so you have icons for WiFi and easy access to settings.

Re: Show HN: Terminal Multiplexer Inspired by I3

#18
post #3

This looks awesome! The modifier key seems to be Alt, which is also default on desktop i3 windows manager. I wonder if it's going to interfere - eg. pressing Alt+Enter will simultaneously open new window both in multiplexer and on my desktop?

The default modifier i3 uses is the Super (“Windows”) key. It asks you about this on first start (via https://manpages.debian.org/buster/i3-wm/i3-config-wizard.1....), and if your keyboard does not the the Super key, you can chose Alt as a fallback.

Re: Show HN: Terminal Multiplexer Inspired by I3

#19
My favorite is dvtm. The main reason is how it handles scrolling and selecting content: by opening the buffer in Vim. This is really powerful because it also lets me do anything Vim does, including saving parts of a command's output directly to a file, after cutting out irrelevant parts.

But this looks like a great project too - using WM-like shortcuts in a terminal multiplexer works really well.

Re: Show HN: Terminal Multiplexer Inspired by I3

#20
post #16

Excellent!!! I think this is exactly what I have been wishing for (fro quite some time now)! I am not quite ready to make the switch to i3 as a WM, (I'm still fairly 'new' in the Ubuntu world, so still need the GUI to help me find settings that I don't know the name of thus how to access via a CLI) this brings me all the great features for my terminal (just like you stated). This is now the first item on my TODO list…

You should give https://regolith-linux.org/ a try. It's a Ubuntu based distro with i3 as WM. They have polished a few things here and there so you have icons for WiFi and easy access to settings.

Just used the PPA. Looks very nice. Has some very nice defaults. Super-Shift-? to get the keybinds was a great idea. I did hit one snag: I can't figure out how to run any actual programs. With the remapping of Super-d to pull up display settings, I am not seeing anything that will pop up an equivalent to dmenu.
Post reply on HN