made battery status update at most every minute
also, stopped updating when no client is attached
This commit is contained in:
parent
cba2a6c1ec
commit
94eab29107
1 changed files with 3 additions and 1 deletions
|
@ -1127,7 +1127,9 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim
|
||||||
# set -g '@battery_vbar_palette' "$tmux_conf_battery_vbar_palette" \;\
|
# set -g '@battery_vbar_palette' "$tmux_conf_battery_vbar_palette" \;\
|
||||||
# set -g '@battery_status_charging' "$(_decode_unicode_escapes "$tmux_conf_battery_status_charging")" \;\
|
# set -g '@battery_status_charging' "$(_decode_unicode_escapes "$tmux_conf_battery_status_charging")" \;\
|
||||||
# set -g '@battery_status_discharging' "$(_decode_unicode_escapes "$tmux_conf_battery_status_discharging")"
|
# set -g '@battery_status_discharging' "$(_decode_unicode_escapes "$tmux_conf_battery_status_discharging")"
|
||||||
# status_right="#(cut -c3- ~/.tmux.conf | sh -s _battery)$status_right"
|
# interval=60
|
||||||
|
# pkill -f 'cut -c3- ~/\.tmux\.conf \| sh -s _battery' || true
|
||||||
|
# status_right="#(printf '\n'; while [ \$(tmux display -p '##{session_attached}') -gt 0 ]; do cut -c3- ~/.tmux.conf | sh -s _battery; sleep $interval; done)$status_right"
|
||||||
# ;;
|
# ;;
|
||||||
# esac
|
# esac
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue