From 816c557a77918d9b856ba11f49e9245317ecafc2 Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Fri, 22 Apr 2022 16:24:56 -0400 Subject: [PATCH] Make tmux battery display more refined --- chezmoi/dot_tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chezmoi/dot_tmux.conf b/chezmoi/dot_tmux.conf index c5b369f..3714acb 100644 --- a/chezmoi/dot_tmux.conf +++ b/chezmoi/dot_tmux.conf @@ -56,7 +56,7 @@ set -g status-left "[#S] > #(awk '{uptime=$1; days=int(uptime/86400); uptime-=86 set -g status-right-length 100 set -g status-right-style 'bg=terminal, fg=green' -set -g status-right "#(acpi | tr -d , | awk '/[0-9]+%/{printf \"%%s %%s < \", $3, $4}')%R < %F < #(echo \"$USER\") < #h" +set -g status-right "#(acpi | tr -d , | awk 'NR==1{printf \"%%s %%s < \", $3, $4; exit}')%R < %F < #(echo \"$USER\") < #h" ## } Status line