diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-11-27 20:46:19 -0500 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-11-27 20:46:19 -0500 |
| commit | 09e3e8fde2f251f54803f129b9ffb68930e455ae (patch) | |
| tree | ff6f0b53ccfff43313469f10b2d4b72c771723f0 /lemonbar-xft | |
| parent | Ignore other gpg files (diff) | |
| download | dotfiles-09e3e8fde2f251f54803f129b9ffb68930e455ae.zip | |
update openbsd install
Diffstat (limited to 'lemonbar-xft')
| -rwxr-xr-x | lemonbar-xft/.config/lemonbar-xft/bar.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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() { |