From 877be2ec8370b3a3ac1fd6b14118c6362365ce32 Mon Sep 17 00:00:00 2001 From: desktop Date: Sat, 18 Nov 2023 05:42:23 +0300 Subject: [PATCH] tmux : show battery percentage when available. --- .config/tmux/tmux.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index f46add7..e62572d 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -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