While a lot of my usage is quite simple, tmux is a quite useful tool in my toolbox. I use it on both remote linux machines and locally on my MacOS install.
Local Machine
Many of my tmux sessions on my local machine, are managed by my Norikae task manager. Tmux seemed to be the easiest way to quickly have a kind of psudo background process with logs.
I also tend to run my mqtt testing projects in tmux as well.
Remote Machine
Recently on my remote machines, I have been using tmux’s main-horizontal preset layout
.
| docker stats | |
| htop | bash/just |
By default, one can swap to this layout with Ctrl + B + Alt + 3.
Since I use docker on many of my machines, having docker stats as the main panel is useful for seeing what is running.
Sometimes I will swap this with watch docker ps when I need to check other information.
In the future I would like to try out some other docker wrappers that will give me a nicer tui for managing things, so I can also easily login to a container or check los.
Newer versions of htop also have added O (capital o) as a way to toggle processes in containers.
This means I can easily see the overall usage of the server, and processes not running in containers.
I also tend to have a Justfile
on each of my servers, so my last panel is a shell that usually runs just.