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:
parent
830389891d
commit
86cf594dfa
1 changed files with 8 additions and 8 deletions
16
.tmux.conf
16
.tmux.conf
|
@ -495,7 +495,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"
|
||||
|
@ -654,7 +654,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)
|
||||
|
@ -664,12 +664,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)
|
||||
# }'
|
||||
# }
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue