1
0
Fork 0
mirror of synced 2024-12-27 16:53:22 -05:00

fixed triplet form battery palette

This commit is contained in:
Gregory Pakosz 2024-03-02 10:37:02 +01:00
parent 69a0bedc36
commit b4552b2515

View file

@ -258,7 +258,7 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
# fi
#
# _bar() {
# bar_palette=$1
# bar_palette=${1//;/,}
# bar_symbol_empty=$2
# bar_symbol_full=$3
# bar_length=$4
@ -327,7 +327,7 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
# }
#
# _hbar() {
# hbar_palette=$1
# hbar_palette=${1//;/,}
# hbar_value=$2
#
# 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_palette=$1
# vbar_palette=${1//;/,}
# vbar_value=$2
#
# 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_hbar%#\{?@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_hbar\}%#(nice cut -c3- '$TMUX_CONF' | sh -s _hbar '$tmux_conf_battery_hbar_palette' '#{@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_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_hbar\}%#(nice cut -c3- '$TMUX_CONF' | sh -s _hbar '${tmux_conf_battery_hbar_palette//,/;}' '#{@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_status%#\{\1@battery_status%g' \
# -e 's%#\{(\?)?battery_percentage%#\{\1@battery_percentage%g')
# status_right=$(echo "$status_right" | sed -E \
# -e 's%#\{\?battery_bar%#\{?@battery_percentage%g' \
# -e 's%#\{\?battery_hbar%#\{?@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_hbar\}%#(nice cut -c3- '$TMUX_CONF' | sh -s _hbar '$tmux_conf_battery_hbar_palette' '#{@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_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_hbar\}%#(nice cut -c3- '$TMUX_CONF' | sh -s _hbar '${tmux_conf_battery_hbar_palette//,/;}' '#{@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_status%#\{\1@battery_status%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"