tmux : show battery percentage when available.

This commit is contained in:
Dmitry Voronin 2023-11-18 05:42:23 +03:00 committed by work
parent a3198b9a46
commit 877be2ec83

View file

@ -13,7 +13,7 @@ unbind '"'
unbind % unbind %
# reload config. # reload config.
bind -n M-r source-file ~/.tmux.conf bind -n M-r source-file ~/.config/tmux/tmux.conf
# swith panes with alt + hjkl. # swith panes with alt + hjkl.
bind -n M-a select-pane -L bind -n M-a select-pane -L
@ -58,7 +58,7 @@ set -g status-position bottom
set -g status-justify left set -g status-justify left
set -g status-style 'bg=yellow fg=black dim' set -g status-style 'bg=yellow fg=black dim'
set -g status-left ' #H-#S ' set -g status-left ' #H-#S '
set -g status-right '#[fg=black,bg=orange] %d/%m %H:%M ' set -g status-right '#[fg=black,bg=orange] #(cat /sys/class/power_supply/BAT*/capacity 2> /dev/null | /usr/bin/tr -d "\n" && echo -n "% ")%d/%m %H:%M '
set -g status-right-length 50 set -g status-right-length 50
set -g status-left-length 20 set -g status-left-length 20