fixup! fixed triplet form battery palette
This commit is contained in:
parent
b4552b2515
commit
cb438b237f
1 changed files with 9 additions and 9 deletions
18
.tmux.conf
18
.tmux.conf
|
@ -258,7 +258,7 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
|
||||||
# fi
|
# fi
|
||||||
#
|
#
|
||||||
# _bar() {
|
# _bar() {
|
||||||
# bar_palette=${1//;/,}
|
# bar_palette=$(printf '%s' "$1" | tr ';' ',')
|
||||||
# bar_symbol_empty=$2
|
# bar_symbol_empty=$2
|
||||||
# bar_symbol_full=$3
|
# bar_symbol_full=$3
|
||||||
# bar_length=$4
|
# bar_length=$4
|
||||||
|
@ -327,7 +327,7 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
# _hbar() {
|
# _hbar() {
|
||||||
# hbar_palette=${1//;/,}
|
# hbar_palette=$(printf '%s' "$1" | tr ';' ',')
|
||||||
# hbar_value=$2
|
# hbar_value=$2
|
||||||
#
|
#
|
||||||
# if echo "$hbar_palette" | grep -q -E '^heat|gradient(,[#a-z0-9]{7,9})?$'; then
|
# if echo "$hbar_palette" | grep -q -E '^heat|gradient(,[#a-z0-9]{7,9})?$'; then
|
||||||
|
@ -361,7 +361,7 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
# _vbar() {
|
# _vbar() {
|
||||||
# vbar_palette=${1//;/,}
|
# vbar_palette=$(printf '%s' "$1" | tr ';' ',')
|
||||||
# vbar_value=$2
|
# vbar_value=$2
|
||||||
#
|
#
|
||||||
# if echo "$vbar_palette" | grep -q -E '^heat|gradient(,[#a-z0-9]{7,9})?$'; then
|
# if echo "$vbar_palette" | grep -q -E '^heat|gradient(,[#a-z0-9]{7,9})?$'; then
|
||||||
|
@ -1416,18 +1416,18 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
|
||||||
# -e 's%#\{\?battery_bar%#\{?@battery_percentage%g' \
|
# -e 's%#\{\?battery_bar%#\{?@battery_percentage%g' \
|
||||||
# -e 's%#\{\?battery_hbar%#\{?@battery_percentage%g' \
|
# -e 's%#\{\?battery_hbar%#\{?@battery_percentage%g' \
|
||||||
# -e 's%#\{\?battery_vbar%#\{?@battery_percentage%g' \
|
# -e 's%#\{\?battery_vbar%#\{?@battery_percentage%g' \
|
||||||
# -e "s%#\{battery_bar\}%#(nice cut -c3- '$TMUX_CONF' | sh -s _bar '${tmux_conf_battery_bar_palette//,/;}' '$tmux_conf_battery_bar_symbol_empty' '$tmux_conf_battery_bar_symbol_full' '$tmux_conf_battery_bar_length' '#{@battery_charge}' '#{client_width}')%g" \
|
# -e "s%#\{battery_bar\}%#(nice cut -c3- '$TMUX_CONF' | sh -s _bar '$(printf '%s' "$tmux_conf_battery_bar_palette" | tr ',' ';')' '$tmux_conf_battery_bar_symbol_empty' '$tmux_conf_battery_bar_symbol_full' '$tmux_conf_battery_bar_length' '#{@battery_charge}' '#{client_width}')%g" \
|
||||||
# -e "s%#\{battery_hbar\}%#(nice cut -c3- '$TMUX_CONF' | sh -s _hbar '${tmux_conf_battery_hbar_palette//,/;}' '#{@battery_charge}'')%g" \
|
# -e "s%#\{battery_hbar\}%#(nice cut -c3- '$TMUX_CONF' | sh -s _hbar '$(printf '%s' "$tmux_conf_battery_hbar_palette" | tr ',' ';') '#{@battery_charge}'')%g" \
|
||||||
# -e "s%#\{battery_vbar\}%#(nice cut -c3- '$TMUX_CONF' | sh -s _vbar '${tmux_conf_battery_vbar_palette//,/;}' '#{@battery_charge}'')%g" \
|
# -e "s%#\{battery_vbar\}%#(nice cut -c3- '$TMUX_CONF' | sh -s _vbar '$(printf '%s' "$tmux_conf_battery_vbar_palette" | tr ',' ';')' '#{@battery_charge}'')%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=$(echo "$status_right" | sed -E \
|
# status_right=$(echo "$status_right" | sed -E \
|
||||||
# -e 's%#\{\?battery_bar%#\{?@battery_percentage%g' \
|
# -e 's%#\{\?battery_bar%#\{?@battery_percentage%g' \
|
||||||
# -e 's%#\{\?battery_hbar%#\{?@battery_percentage%g' \
|
# -e 's%#\{\?battery_hbar%#\{?@battery_percentage%g' \
|
||||||
# -e 's%#\{\?battery_vbar%#\{?@battery_percentage%g' \
|
# -e 's%#\{\?battery_vbar%#\{?@battery_percentage%g' \
|
||||||
# -e "s%#\{battery_bar\}%#(nice cut -c3- '$TMUX_CONF' | sh -s _bar '${tmux_conf_battery_bar_palette//,/;}' '$tmux_conf_battery_bar_symbol_empty' '$tmux_conf_battery_bar_symbol_full' '$tmux_conf_battery_bar_length' '#{@battery_charge}' '#{client_width}')%g" \
|
# -e "s%#\{battery_bar\}%#(nice cut -c3- '$TMUX_CONF' | sh -s _bar '$(printf '%s' "$tmux_conf_battery_bar_palette" | tr ',' ';')' '$tmux_conf_battery_bar_symbol_empty' '$tmux_conf_battery_bar_symbol_full' '$tmux_conf_battery_bar_length' '#{@battery_charge}' '#{client_width}')%g" \
|
||||||
# -e "s%#\{battery_hbar\}%#(nice cut -c3- '$TMUX_CONF' | sh -s _hbar '${tmux_conf_battery_hbar_palette//,/;}' '#{@battery_charge}'')%g" \
|
# -e "s%#\{battery_hbar\}%#(nice cut -c3- '$TMUX_CONF' | sh -s _hbar '$(printf '%s' "$tmux_conf_battery_hbar_palette" | tr ',' ';') '#{@battery_charge}'')%g" \
|
||||||
# -e "s%#\{battery_vbar\}%#(nice cut -c3- '$TMUX_CONF' | sh -s _vbar '${tmux_conf_battery_vbar_palette//,/;}' '#{@battery_charge}'')%g" \
|
# -e "s%#\{battery_vbar\}%#(nice cut -c3- '$TMUX_CONF' | sh -s _vbar '$(printf '%s' "$tmux_conf_battery_vbar_palette" | tr ',' ';')' '#{@battery_charge}'')%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="#(echo; 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"
|
||||||
|
|
Loading…
Reference in a new issue