updated bat icons
This commit is contained in:
parent
95c5019d3e
commit
62b2816bfd
@ -1,15 +1,15 @@
|
|||||||
#!/bin/bash -x
|
#!/bin/bash
|
||||||
|
|
||||||
icon=" "
|
icon=""
|
||||||
|
|
||||||
current=$(acpi --battery | sed -e 's/%.*//' | sed 's/.*, //')
|
current=$(acpi --battery | sed -e 's/%.*//' | sed 's/.*, //')
|
||||||
|
|
||||||
state=$(acpi --battery | sed -e 's/,.*//' | sed 's/.*: //')
|
state=$(acpi --battery | sed -e 's/,.*//' | sed 's/.*: //')
|
||||||
|
|
||||||
if [[ "$state" == "Discharging" ]]; then
|
if [[ "$state" == "Discharging" ]]; then
|
||||||
case $((current/5/4)) in
|
case $((current/20)) in
|
||||||
1)
|
1)
|
||||||
icon=""
|
icon=""
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
icon=""
|
icon=""
|
||||||
|
|||||||
Reference in New Issue
Block a user