Skip to content

Instantly share code, notes, and snippets.

@lucascompython
Last active March 19, 2023 19:07
Show Gist options
  • Save lucascompython/eca740fdb41f38b54b73d589306a93ff to your computer and use it in GitHub Desktop.
Save lucascompython/eca740fdb41f38b54b73d589306a93ff to your computer and use it in GitHub Desktop.
Make a terminal show both information of your CPU and GPU!

ATOP (all top)

REALLY simple (4 lines) script that uses Tmux to split the terminal vertically and open nvtop to the left and btop to the right.

Preview

Preview image

Code

As I said really simple!

#!/bin/sh
tmux new-session -d "nvtop"
tmux split-window -h "btop"
tmux -2 attach-session -d
#!/bin/sh
tmux new-session -d "nvtop"
tmux split-window -h "btop"
tmux -2 attach-session -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment