TMUX Sessionizing!

2026–05–20

Mux and motivation

Link to all code

Video demo

I’ve always used a ton of bash scripts for my main work flows. From generating homework templates from my LaTeX days to parsing webpages to form my local homework due deadline calenders. But recently as my Inpirion has begun dying a slow and painful death after 3 years of use, new problems have emerged.

With the occasional random poweroffs and inability to sleep without fully shutting off, I’m not longer able to just leave each of my projects open on a different i3 tags. So I’ve begun exploring an old rite of passage for tiling window manager using vimmers, TMUX

My main desire for TMUX comes from it’s ability to maintain and hold sessions in a small format that can be accessed later (using a script). These persistent sessions are useful for a few reasons :

So how do we go about this? The most famous starting point for a sessionizing script would be the well known Primeagain script. But this script has a few problems in my opinion,

So here I can introduced an improved sessionizing script that fulfills the original goals of the primeagen’s script while being just slightly longer.

Here you have a few options and improvements :