Skip to main content

A local web UI for starting, stopping, monitoring, and arranging tmux-managed command cards.

Project description

Tmux Manager v1.2

Tmux Manager is a configurable local web UI for starting, stopping, monitoring, and arranging tmux-managed command cards.

Features

  • Four card slots per row on wide screens
  • Edit Mode for layout changes
  • Drag cards into empty slots
  • Drop a card onto another card; the card that was there moves to the next available slot
  • Card positions are saved in commands.json using a slot field
  • Add/edit/delete cards from the UI
  • Each card runs in its own tmux window
  • Logs are cached under logs/

Install

sudo apt update
sudo apt install -y tmux python3

Install from PyPI:

python3 -m pip install TmuxTerminalManager

For local development from a clone:

python3 -m pip install -e .

Start

TmuxManager

Open:

http://127.0.0.1:8765

Edit Mode layout

  1. Click Edit Mode: Off to turn it on.
  2. Empty slots will appear.
  3. Click and drag a card.
  4. Drop it into an empty slot, or drop it onto another card.
  5. Layout saves automatically to ~/.tmux_manager/commands.json.

Runtime files are stored under ~/.tmux_manager by default:

  • commands.json for saved cards
  • logs/ for cached output
  • state/ for tmux-managed process state

Set TMUX_MANAGER_HOME=/path/to/folder before launch to use a different data directory.

Example command entries

Isaac Sim alias/function

bash -ic 'isaacsim_ros'

ROS 2 launch

source /opt/ros/humble/setup.bash && source ~/your_ws/install/setup.bash && exec ros2 launch my_pkg my_launch.launch.py

Shell script

bash ./ffmpeg.sh

Docker foreground

docker run --rm -it --name mediamtx your_image

Stop behavior

The UI's Ctrl+C Stop button sends the same thing as pressing Ctrl+C inside the tmux window:

tmux send-keys -t tmux_manager:<card_id> C-c

Foreground commands should stop cleanly.

Background commands using &, nohup, or docker run -d may continue after the shell exits.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tmuxterminalmanager-1.2.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tmuxterminalmanager-1.2-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file tmuxterminalmanager-1.2.tar.gz.

File metadata

  • Download URL: tmuxterminalmanager-1.2.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for tmuxterminalmanager-1.2.tar.gz
Algorithm Hash digest
SHA256 c2fc98bccf313fd84d0b203ae36c3992e574618680e048f2a39967bf8ae7d7f5
MD5 b0f5dce8f47abbffe6750cfdf201b0a8
BLAKE2b-256 e67c26a7dc91093b695898ed6a803b530304eae128c781db5dd5c396a6e0fbf1

See more details on using hashes here.

File details

Details for the file tmuxterminalmanager-1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for tmuxterminalmanager-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a5d4f6097b9f9f9b9764d37aa5c8a1e8a1473349c09e72289a93c4b318b818f4
MD5 23c756e16d7b062ae5775af98baff8fa
BLAKE2b-256 cf682223243012fecd75428f363a5ad317e61606a3aeb6a6d1e87290763076c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page