A short guide on creating a shell script that combines tmux, btop, and GPU monitoring tools (nvtop, amdgpu_top, nvidia-smi, or intel_gpu_top) into a unified system monitoring setup. The script detects available GPU tools, then programmatically creates or attaches to a tmux session with btop in one pane and the GPU tool in a split pane below. It also handles the case where the script is run from within an existing tmux session by opening a new window instead.
Sort: