WARNING This project is in its very initial development stage, not all features are implemented yet, usage API still subjected to change until 1.0.0
TMUX-WAX is a Rust CLI application that connects to a remote server using SSH and retrieves Docker container statistics. It can display the results in a TMUX status bar or at the command prompt.
- Secure SSH connection to remote server
- Retrieval of Docker container statistics
- Display of total containers, running containers, stopped containers, and failed containers
- Output formatting for TMUX status bar or command prompt
- Ensure you have Rust and Cargo installed on your system.
- Clone this repository:
git clone https://github.com/yourusername/tmux-wax.git
- Navigate to the project directory:
cd tmux-wax
- Build the project:
cargo build --release
- The binary will be available at
target/release/tmux-wax
Create a .tmux-wax-env
file in your home directory with the following content:
username = "your_ssh_username"
password = "your_ssh_password"
host = "your_remote_host"
port = 22
Replace the values with your actual SSH credentials and remote host information.
To display Docker stats in the terminal:
tmux-wax
To output Docker stats for TMUX status bar:
tmux-wax --tmux
To integrate with TMUX, add the following line to your .tmux.conf
file:
set -g status-right '#(tmux-wax --tmux)'
- The application uses SSH for secure communication with the remote server.
- Credentials are stored in a separate configuration file for better security management.
- The SSH2 crate is used with the
vendored-openssl
feature to ensure a consistent and up-to-date OpenSSL implementation.
This project is licensed under the MIT License - see the LICENSE file for details.