diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-11 10:09:10 +0200 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-11 10:09:10 +0200 |
commit | e1b57e2279d22dca4feaa4e639d7b03ccc64b7ab (patch) | |
tree | d08255609b11a87b7fd875494acfacca37471207 | |
parent | Added nomonocleborders [Patch] (diff) | |
download | dwm-e1b57e2279d22dca4feaa4e639d7b03ccc64b7ab.tar.gz dwm-e1b57e2279d22dca4feaa4e639d7b03ccc64b7ab.tar.bz2 dwm-e1b57e2279d22dca4feaa4e639d7b03ccc64b7ab.zip |
Improved status bar
-rwxr-xr-x | scripts/dwm-status | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/dwm-status b/scripts/dwm-status index 2a07e8b..15ce120 100755 --- a/scripts/dwm-status +++ b/scripts/dwm-status @@ -88,6 +88,14 @@ status() { \ echo "$delim" # Will show all batteries with approximate icon for remaining power. + ac_adapter=$(acpi -a | cut -d' ' -f3 | cut -d- -f1) + charging="" + if [ "$ac_adapter" == "on" ]; then + echo "" #Charging + else + : #Not Charging + fi + for x in /sys/class/power_supply/BAT?/capacity; do case "$(cat $x)" in |