Last active
August 8, 2023 08:30
-
-
Save CRImier/15c870091477d0d947019c52571d37d1 to your computer and use it in GitHub Desktop.
monitor-pc : tmux script for watching over ur compooter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -eux | |
cd $HOME | |
tmux new-session \; \ | |
split-window -v \; \ | |
send-keys ' htop' C-m \; \ | |
split-window -v \; \ | |
send-keys ' top' C-m \; \ | |
split-window -h -p 60 \; \ | |
select-pane -t 1 \; \ | |
split-window -h \; \ | |
select-pane -t 0 \; \ | |
split-window -h \; \ | |
send-keys ' dmesg -Hw &' C-m \; \ | |
select-pane -t 0 \; \ | |
send-keys ' watch -t "sensors|awk NF|grep -v Adapter: "' C-m \; \ | |
split-window -h \; \ | |
send-keys ' ping 8.8.8.8' C-m \; \ | |
select-pane -t 1 \; \ | |
split-window -v -p 40 \; \ | |
send-keys ' watch -n1 -t "df -h|grep -v loop|grep -v tmp|grep -v udev|grep -v .Private"' C-m \; \ | |
select-pane -t 0 \; \ | |
split-window -v -p 26 \; \ | |
send-keys ' watch -n1 -t grep MHz /proc/cpuinfo' C-m \; \ | |
split-window -h \; \ | |
send-keys ' watch -t "acpi -V|grep \"%\"|grep -vi unknown; acpi -V|grep \"Adapter\""' C-m \; \ | |
select-pane -t 5 \; \ | |
set-option mouse on \; \ | |
set-option status-style bg=cyan,fg=black\; \ | |
set-option pane-active-border-style fg=cyan\; \ | |
set-option default-terminal "screen-256color"\; \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment