diff --git a/.tmux.conf b/.tmux.conf index c4e9851..c348ebe 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1181,7 +1181,9 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim # -e 's/#\{(\?)?loadavg/#\{\1@loadavg/g') # status_right=$(echo "$status_right" | sed -E \ # -e 's/#\{(\?)?loadavg/#\{\1@loadavg/g') -# status_right="#(cut -c3- ~/.tmux.conf | sh -s _loadavg)$status_right" +# interval=$(tmux show -gv status-interval) +# pkill -f 'cut -c3- ~/\.tmux\.conf \| sh -s _loadavg' || true +# status_right="#(printf '\n'; while [ \$(tmux display -p '##{session_attached}') -gt 0 ]; do cut -c3- ~/.tmux.conf | sh -s _loadavg; sleep $interval; done)$status_right" # ;; # esac #