wiki

Getting Started

Follow these steps to build, install, and run T-Strip for the first time.

Step 1 — Download or build

Option A: Install from a release (easiest)

curl -fsSL https://raw.githubusercontent.com/dip-bash/tstrip/main/install.sh | bash
tst --init

Option B: Build from source

You need Go 1.22 or newer.

git clone https://github.com/dip-bash/tstrip.git
cd tstrip
go mod tidy
make build

This produces a file called tst in the current folder.

welcome-tstrip

Step 2 — Create your config

Run:

./tst --init

This writes two files to ~/.config/tst/:

You do not need to edit anything yet. The built-in defaults work great.

welcome-tstrip

Step 3 — Start T-Strip

./tst

This opens session “main”. The first time, it starts a background server and attaches to it. You will see an empty workspace.

empty-tstrip

Step 4 — Your first minutes inside T-Strip

The default leader key is alt. All shortcuts are written as leader+<key>, so leader+enter means alt+enter.

Try these right away:

Press What happens
alt+enter Open a new pane (a new column)
alt+s Stack a new pane below the focused one
alt+h / alt+l / alt+j / alt+k Focus left / right / down / up
alt+1 … alt+9 Switch to workspace 1 … 9
alt+o Open the overview (see all workspaces at once)
alt+a Enter copy mode (vim-style selection)
alt+d Detach — the session keeps running
alt+Q Quit the session for good

one-pane-tstrip

A tiny demo to try

Open a pane and run a command that keeps printing, so you can see scrollback in action:

  1. alt+enter — open a new pane
  2. Type yes and press Enter — the pane fills with y lines
  3. shift+pageup — scroll back through the history
  4. Type anything — you jump back to the live screen
  5. alt+d — detach
  6. Close your terminal
  7. Reopen a terminal and run ./tst — your yes process is still running

scrollback-tstrip

Step 5 — Detach and come back later

Detaching is the superpower of T-Strip. Your programs keep running on the server even when no terminal is attached.

# From inside T-Strip:
alt+d        # detach; close your terminal if you want

# Later, from any terminal:
./tst            # attach to "main"
./tst -s work    # attach to session "work"
./tst ls         # list all live sessions
./tst kill work  # end a session and everything in it

session-ls-tstrip

Step 6 — Control T-Strip from outside

You can drive a running session from any shell or script. The program always goes in double quotes, as one argument:

tst open "htop" -n 3 -w 0.33    # htop in workspace 3, one third width
tst open "tail -f /var/log/syslog" --below
tst open "make watch" -k        # keep focus where it is
tst workspace 3                 # switch view
tst focus left                  # move focus
tst width 50%                   # resize focused column
tst send -e "make test"         # type into a pane, press Enter after
tst close                       # close the focused pane
tst list                        # list panes
tst action overview             # run any action by name

Next steps

Now that you are up and running, dig deeper:


Tip: Press alt+/ inside T-Strip to open a scrollable help overlay that shows your current key bindings.