ministo

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.swab.dev/ministo.git
Log | Files | Refs

commit 2431de8007ad9d1e4531478b6dcaadb033953eae
Author: Jaron Swab <jaron@swab.dev>
Date:   Sun, 20 Jun 2021 00:02:58 -0400

Initial commit

Diffstat:
AgetAverageCpuMHz.sh | 23+++++++++++++++++++++++
Atmux.conf | 23+++++++++++++++++++++++
2 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/getAverageCpuMHz.sh b/getAverageCpuMHz.sh @@ -0,0 +1,23 @@ +#! /bin/sh + +cpus=$(awk '/cpu MHz/ { print $4 }' /proc/cpuinfo) + +n=0 +i=0 +sum=0 + +for _ in $cpus; do + n=$((n+1)) +done + +while [ $i -le $n ]; do + i=$((i+1)) +done + +for num in $cpus; do + sum=$(echo "$sum" + "$num" | bc -l) +done + +mhz="$(echo "$sum" / "$n" | bc -l)" +printf '%0.2fGHz' "$(echo "$mhz" / 1000 | bc -l)" +exit 0; diff --git a/tmux.conf b/tmux.conf @@ -0,0 +1,23 @@ +# tmux config + +set -g pane-border-style fg='grey' +set -g pane-active-border-style fg='green' + +set -g message-style bg='red' + +set -g status-style bg='black',fg='white' +set -g status-interval 2 + +set-window-option -g window-status-style fg='grey',bg='black' +set-window-option -g window-status-current-style fg='green',bg='black' +set -g window-status-format " #F#I:#W#F " +set -g window-status-format "#[fg=grey]#[bg=black] #I #[bg=black]#[fg=grey] #W " +set -g window-status-current-format " #F#I:#W#F " +set -g window-status-current-format "#[fg=black]#[bg=green] #I #[bg=green]#[fg=black] #W " + +set-option -g status-left-length 25 +set-option -g status-left "#[fg=white]#[bg=black]#H #[fg=white]#[bg=black]#(uname -r | cut -d "-" -f 1) #[default]" + +set-option -g status-right-length 150 +set-option -g status-right "#[fg=white]#[bg=black]#[fg=white]#[bg=black]CPU: #(getAverageCpuMhz.sh) #(sensors | awk '/Tdie:/ { print $2}') | " +set-option -ag status-right "#[fg=white]#[bg=black]#[fg=white]#[bg=black]%a %Y-%m-%d %H:%M "