replaced printf '\n' calls by echo calls, fixes #479
TPM plugins further editing status-left or status-right may alter the content in such a way that the line feed character becomes a space
This commit is contained in:
parent
760bf4fabd
commit
1f91646af1
1 changed files with 4 additions and 4 deletions
|
@ -1213,12 +1213,12 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
||||||
# -e 's/#\{(\?)?battery_vbar/#\{\1@battery_vbar/g' \
|
# -e 's/#\{(\?)?battery_vbar/#\{\1@battery_vbar/g' \
|
||||||
# -e 's/#\{(\?)?battery_status/#\{\1@battery_status/g' \
|
# -e 's/#\{(\?)?battery_status/#\{\1@battery_status/g' \
|
||||||
# -e 's/#\{(\?)?battery_percentage/#\{\1@battery_percentage/g')
|
# -e 's/#\{(\?)?battery_percentage/#\{\1@battery_percentage/g')
|
||||||
# status_right="#(printf '\n'; nice cut -c3- ~/.tmux.conf | sh -s _battery_status \"$tmux_conf_battery_status_charging\" \"$tmux_conf_battery_status_discharging\")$status_right"
|
# status_right="#(echo; nice cut -c3- ~/.tmux.conf | sh -s _battery_status \"$tmux_conf_battery_status_charging\" \"$tmux_conf_battery_status_discharging\")$status_right"
|
||||||
# interval=60
|
# interval=60
|
||||||
# if [ $_tmux_version -ge 320 ]; then
|
# if [ $_tmux_version -ge 320 ]; then
|
||||||
# tmux run -b "trap 'exit 0' TERM; while :; do nice cut -c3- ~/.tmux.conf | sh -s _battery_bar \"$tmux_conf_battery_bar_symbol_full\" \"$tmux_conf_battery_bar_symbol_empty\" \"$tmux_conf_battery_bar_length\" \"$tmux_conf_battery_bar_palette\" \"$tmux_conf_battery_hbar_palette\" \"$tmux_conf_battery_vbar_palette\"; sleep $interval; done"
|
# tmux run -b "trap 'exit 0' TERM; while :; do nice cut -c3- ~/.tmux.conf | sh -s _battery_bar \"$tmux_conf_battery_bar_symbol_full\" \"$tmux_conf_battery_bar_symbol_empty\" \"$tmux_conf_battery_bar_length\" \"$tmux_conf_battery_bar_palette\" \"$tmux_conf_battery_hbar_palette\" \"$tmux_conf_battery_vbar_palette\"; sleep $interval; done"
|
||||||
# elif [ $_tmux_version -gt 240 ]; then
|
# elif [ $_tmux_version -gt 240 ]; then
|
||||||
# status_right="#(printf '\n'; while :; do nice cut -c3- ~/.tmux.conf | sh -s _battery_bar \"$tmux_conf_battery_bar_symbol_full\" \"$tmux_conf_battery_bar_symbol_empty\" \"$tmux_conf_battery_bar_length\" \"$tmux_conf_battery_bar_palette\" \"$tmux_conf_battery_hbar_palette\" \"$tmux_conf_battery_vbar_palette\"; sleep $interval; done)$status_right"
|
# status_right="#(echo; while :; do nice cut -c3- ~/.tmux.conf | sh -s _battery_bar \"$tmux_conf_battery_bar_symbol_full\" \"$tmux_conf_battery_bar_symbol_empty\" \"$tmux_conf_battery_bar_length\" \"$tmux_conf_battery_bar_palette\" \"$tmux_conf_battery_hbar_palette\" \"$tmux_conf_battery_vbar_palette\"; sleep $interval; done)$status_right"
|
||||||
# else
|
# else
|
||||||
# status_right="#(nice cut -c3- ~/.tmux.conf | sh -s _battery_bar \"$tmux_conf_battery_bar_symbol_full\" \"$tmux_conf_battery_bar_symbol_empty\" \"$tmux_conf_battery_bar_length\" \"$tmux_conf_battery_bar_palette\" \"$tmux_conf_battery_hbar_palette\" \"$tmux_conf_battery_vbar_palette\")$status_right"
|
# status_right="#(nice cut -c3- ~/.tmux.conf | sh -s _battery_bar \"$tmux_conf_battery_bar_symbol_full\" \"$tmux_conf_battery_bar_symbol_empty\" \"$tmux_conf_battery_bar_length\" \"$tmux_conf_battery_bar_palette\" \"$tmux_conf_battery_hbar_palette\" \"$tmux_conf_battery_vbar_palette\")$status_right"
|
||||||
# fi
|
# fi
|
||||||
|
@ -1271,7 +1271,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
||||||
# if [ $_tmux_version -ge 320 ]; then
|
# if [ $_tmux_version -ge 320 ]; then
|
||||||
# tmux run -b "trap 'exit 0' TERM; while :; do nice cut -c3- ~/.tmux.conf | sh -s _uptime; sleep $interval; done"
|
# tmux run -b "trap 'exit 0' TERM; while :; do nice cut -c3- ~/.tmux.conf | sh -s _uptime; sleep $interval; done"
|
||||||
# elif [ $_tmux_version -gt 240 ]; then
|
# elif [ $_tmux_version -gt 240 ]; then
|
||||||
# status_right="#(printf '\n'; while :; do nice cut -c3- ~/.tmux.conf | sh -s _uptime; sleep $interval; done)$status_right"
|
# status_right="#(echo; while :; do nice cut -c3- ~/.tmux.conf | sh -s _uptime; sleep $interval; done)$status_right"
|
||||||
# else
|
# else
|
||||||
# status_right="#(nice cut -c3- ~/.tmux.conf | sh -s _uptime)$status_right"
|
# status_right="#(nice cut -c3- ~/.tmux.conf | sh -s _uptime)$status_right"
|
||||||
# fi
|
# fi
|
||||||
|
@ -1289,7 +1289,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
||||||
# if [ $_tmux_version -ge 320 ]; then
|
# if [ $_tmux_version -ge 320 ]; then
|
||||||
# tmux run -b "trap 'exit 0' TERM; while :; do nice cut -c3- ~/.tmux.conf | sh -s _loadavg; sleep $interval; done"
|
# tmux run -b "trap 'exit 0' TERM; while :; do nice cut -c3- ~/.tmux.conf | sh -s _loadavg; sleep $interval; done"
|
||||||
# elif [ $_tmux_version -gt 240 ]; then
|
# elif [ $_tmux_version -gt 240 ]; then
|
||||||
# status_right="#(printf '\n'; while :; do nice cut -c3- ~/.tmux.conf | sh -s _loadavg; sleep $interval; done)$status_right"
|
# status_right="#(echo; while :; do nice cut -c3- ~/.tmux.conf | sh -s _loadavg; sleep $interval; done)$status_right"
|
||||||
# else
|
# else
|
||||||
# status_right="#(nice cut -c3- ~/.tmux.conf | sh -s _loadavg)$status_right"
|
# status_right="#(nice cut -c3- ~/.tmux.conf | sh -s _loadavg)$status_right"
|
||||||
# fi
|
# fi
|
||||||
|
|
Loading…
Reference in a new issue