Add sysinfo script
This commit is contained in:
parent
a636fefe97
commit
2bbcc0d690
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# Print loadavg to stdout
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ $(uname -s) = "Darwin" ]; then
|
||||||
|
w | head -n1 | cut -d":" -f3
|
||||||
|
else # Linux
|
||||||
|
cut -d " " -f 1-3 /proc/loadavg
|
||||||
|
fi
|
|
@ -9,7 +9,7 @@ set-window-option -g allow-rename off
|
||||||
set-option -g set-titles on
|
set-option -g set-titles on
|
||||||
set -g status-style 'fg=white, bg=colour8'
|
set -g status-style 'fg=white, bg=colour8'
|
||||||
set -g window-status-current-style 'fg=black, bg=green'
|
set -g window-status-current-style 'fg=black, bg=green'
|
||||||
set -g status-right '#[fg=black, bg=colour2] #(cut -d " " -f 1-3 /proc/loadavg) #[default] #[fg=white, bg=colour238] %H:%M #[default]'
|
set -g status-right '#[fg=black, bg=colour2] #(sysinfo) #[default] #[fg=white, bg=colour238] %H:%M #[default]'
|
||||||
set -g status-justify centre
|
set -g status-justify centre
|
||||||
|
|
||||||
set-window-option -g mode-keys vi
|
set-window-option -g mode-keys vi
|
||||||
|
|
Loading…
Reference in New Issue