tmux : show battery percentage when available.
This commit is contained in:
parent
a3198b9a46
commit
877be2ec83
|
@ -13,7 +13,7 @@ unbind '"'
|
|||
unbind %
|
||||
|
||||
# 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.
|
||||
bind -n M-a select-pane -L
|
||||
|
@ -58,7 +58,7 @@ set -g status-position bottom
|
|||
set -g status-justify left
|
||||
set -g status-style 'bg=yellow fg=black dim'
|
||||
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-left-length 20
|
||||
|
||||
|
|
Reference in a new issue