From 8e94eeaeb82033bc7d1097c77a7b39e4aeb20885 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Mon, 8 Aug 2016 12:01:00 +0200 Subject: [PATCH] add battery to my bar --- xinitrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xinitrc b/xinitrc index 1600fd2..a19bdef 100644 --- a/xinitrc +++ b/xinitrc @@ -34,7 +34,7 @@ fi # My lovely bar bar() { while sleep 1; do - xsetroot -name "$(date +'%a %d %b, %I:%M')" + xsetroot -name "B$(acpi -b | tr -d ' ' | cut -d',' -f2) $(date +'%a %d %b, %I:%M')" done }