From 343e1d0b83165a1cc20d359a4a65827a562ebf3f Mon Sep 17 00:00:00 2001 From: home Date: Sun, 19 Nov 2023 09:14:39 +0300 Subject: [PATCH] tmux : fix cat stupid extra newline. --- .config/tmux/tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 10df5da..3420274 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -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] #(cat /sys/class/power_supply/BAT*/capacity 2> /dev/null | /usr/bin/tr -d "\n" && echo -n "% ")%Y-%m-%d %H:%M ' +set -g status-right '#[fg=black,bg=orange] #(head -c -1 /sys/class/power_supply/BAT*/capacity 2> /dev/null && echo -n "% ")%Y-%m-%d %H:%M ' set -g status-right-length 50 set -g status-left-length 20