TmuxTop is an advanced Tmux process monitoring tool that provides a top-like interface for managing and monitoring processes within Tmux sessions. This tool leverages a terminal user interface (TUI) to display real-time data on CPU and memory usage of processes running in Tmux panes. Additionally, TmuxTop includes features for exporting session data, and backing up and restoring Tmux sessions.
Ensure you have Python 3 and the required dependencies installed:
pip install psutil curses argparse Usage —–
Run the TmuxTop tool:
sh
Copy code
python tmuxtop.py
--export
: Export session and process data to a JSON file.--backup
: Backup current Tmux sessions to a shell script.--restore
: Restore Tmux sessions from the latest backup script.While running TmuxTop, use the following keys to interact with the interface:
tmuxtop_export.json
.Here’s an example of how to use TmuxTop:
sh
Copy code
python tmuxtop.py
sh
Copy code
python tmuxtop.py --export
sh
Copy code
python tmuxtop.py --backup
sh
Copy code
python tmuxtop.py --restore
TmuxTop provides real-time monitoring of processes within Tmux panes. It displays crucial metrics such as CPU and memory usage, user, process IDs, and more, helping you keep track of system resource consumption and performance.
TmuxTop organizes processes by Tmux sessions and windows, making it easy to navigate and view detailed information about each pane. This hierarchical view helps in managing complex setups with multiple sessions and windows efficiently.
The export feature allows you to save the current state of Tmux sessions and processes to a JSON file. This can be useful for later analysis or reporting. Simply press ‘e’ while running TmuxTop or use the --export
option when starting the script.
TmuxTop’s backup and restore functionalities enable you to save and reload your Tmux environment. This is particularly handy for preserving your workflow across reboots or system changes. Use ‘b’ to backup and ‘r’ to restore sessions directly within the interface.
Contributions are welcome! Please submit a pull request or open an issue to discuss any changes or enhancements. Your feedback and suggestions are valuable to make TmuxTop even better.
This project is licensed under the MIT License. See the LICENSE file for more details.
By using TmuxTop, you can enhance your Tmux experience with powerful monitoring and session management capabilities. Whether you’re managing complex development environments or simply want better insight into your Tmux processes, TmuxTop is the tool for you.