updated bash status bat to print full rather than not charging when battery can't hit 100% anymore
This commit is contained in:
parent
11e0e56489
commit
3e69f8937c
@ -1,8 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
current=$(acpi --battery | sed -e 's/%.*//' | sed 's/.*, //')
|
||||
status="$current%"
|
||||
state=$(acpi --battery | sed -e 's/,.*//' | sed 's/.*: //')
|
||||
|
||||
if [[ "$state" == "Not charging" ]]; then
|
||||
state="Full"
|
||||
fi
|
||||
|
||||
echo "$current% $state"
|
||||
|
||||
Reference in New Issue
Block a user