aboutsummaryrefslogtreecommitdiffstats
path: root/lemonbar-xft
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2025-11-27 20:46:19 -0500
committerEugene Triguba <hello@eugenetriguba.com>2025-11-27 20:46:19 -0500
commit09e3e8fde2f251f54803f129b9ffb68930e455ae (patch)
treeff6f0b53ccfff43313469f10b2d4b72c771723f0 /lemonbar-xft
parentIgnore other gpg files (diff)
downloaddotfiles-09e3e8fde2f251f54803f129b9ffb68930e455ae.zip
update openbsd install
Diffstat (limited to 'lemonbar-xft')
-rwxr-xr-xlemonbar-xft/.config/lemonbar-xft/bar.sh3
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() {