From 09e3e8fde2f251f54803f129b9ffb68930e455ae Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Thu, 27 Nov 2025 20:46:19 -0500 Subject: update openbsd install --- lemonbar-xft/.config/lemonbar-xft/bar.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lemonbar-xft') diff --git a/lemonbar-xft/.config/lemonbar-xft/bar.sh b/lemonbar-xft/.config/lemonbar-xft/bar.sh index 63fb4c1..7b486a3 100755 --- a/lemonbar-xft/.config/lemonbar-xft/bar.sh +++ b/lemonbar-xft/.config/lemonbar-xft/bar.sh @@ -24,6 +24,7 @@ battery() { ac_state=$(echo "$apm_output" | head -1) percent=$(echo "$apm_output" | sed -n '2p') charging=$(echo "$apm_output" | sed -n '4p') + minutes=$(apm -m) if [ "$ac_state" = "4" ]; then echo "AC" @@ -52,7 +53,7 @@ battery() { bar="${YELLOW}${bar}${RESET}" fi - printf "%s%% %s" "$percent" "$bar" + printf "%s%% %s (%s min)" "$percent" "$bar" "$minutes" } cpu() { -- cgit v1.2.3