aboutsummaryrefslogtreecommitdiffstats
path: root/lemonbar-xft
diff options
context:
space:
mode:
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() {