1
0
Fork 0
mirror of synced 2024-12-04 14:45:38 -05:00

fixup! added support for configuration files in the following locations: - ~/.tmux.conf and ~/.tmux.conf.local - $XDG_CONFIG_HOME/tmux/tmux.conf and $XDG_CONFIG_HOME/tmux/tmux.conf.local - ~/.config/tmux/tmux.conf and ~/.config/tmux/tmux.conf.local

This commit is contained in:
Gregory Pakosz 2023-01-22 09:55:22 +01:00
parent 9b9f96587d
commit 66bf4f8173

View file

@ -494,7 +494,7 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
#
# battery_percentage="$(awk "BEGIN { printf \"%.0f%%\", ($charge) * 100 }")"
#
# tmux set -g '@battery_bar' "$battery_bar" \;\
# tmux set -g '@battery_bar' "$battery_bar" \;\
# set -g '@battery_hbar' "$battery_hbar" \;\
# set -g '@battery_vbar' "$battery_vbar" \;\
# set -g '@battery_percentage' "$battery_percentage"
@ -653,7 +653,7 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
# now=$(date +%s)
# esac
# # shellcheck disable=SC1004
# awk -v boot="$boot" -v now="$now" '
# awk -v tmux="$TMUX_EXECUTABLE" -v boot="$boot" -v now="$now" '
# BEGIN {
# uptime = now - boot
# y = int(uptime / 31536000)
@ -663,12 +663,12 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
# m = int(uptime / 60) % 60
# s = int(uptime) % 60
#
# system("tmux set -g @uptime_y " y + 0 " \\; " \
# "set -g @uptime_dy " dy + 0 " \\; " \
# "set -g @uptime_d " d + 0 " \\; " \
# "set -g @uptime_h " h + 0 " \\; " \
# "set -g @uptime_m " m + 0 " \\; " \
# "set -g @uptime_s " s + 0)
# system(tmux " set -g @uptime_y " y + 0 " \\;" \
# " set -g @uptime_dy " dy + 0 " \\;" \
# " set -g @uptime_d " d + 0 " \\;" \
# " set -g @uptime_h " h + 0 " \\;" \
# " set -g @uptime_m " m + 0 " \\;" \
# " set -g @uptime_s " s + 0)
# }'
# }
#