From 46a15ff10ddd6bccd30036eafc811c2d04dbf1b7 Mon Sep 17 00:00:00 2001 From: srdusr Date: Sun, 22 Jan 2023 23:54:32 +0200 Subject: Add tmux mem and cpu togglability --- .config/tmux/right-status.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.config') diff --git a/.config/tmux/right-status.sh b/.config/tmux/right-status.sh index ed6232a..2e24cf9 100755 --- a/.config/tmux/right-status.sh +++ b/.config/tmux/right-status.sh @@ -46,4 +46,14 @@ usage="$usedRam/$totalRam" #echo "cpu:$getCPU% | mem:$pct% ($usage""G)" echo "cpu:$getCPU% | mem:$pct% |" +#if +# [[ `tmux show-option -w status-right` ]]; +#then +# echo "" +# echo "cpu:$getCPU% | mem:$pct% |" +#else +#fi + +# tmux set -ag status-right "#[fg=#50fa7b,bg=default] #{?client_prefix,#[reverse] Prefix #[noreverse] ,} #[bg=default,fg=#50fa7b]#[bg=#50fa7b,fg=black]#( ~/.config/tmux/right-status.sh ) %H:%M | %d-%b-%y " +# tmux set -ag status-right "#[fg=#50fa7b,bg=default] #{?client_prefix,#[reverse] Prefix #[noreverse] ,} #[bg=default,fg=#50fa7b]#[bg=#50fa7b,fg=black] %H:%M | %d-%b-%y " -- cgit v1.2.3