parent
f936b1e485
commit
7d318def48
|
|
@ -27,8 +27,6 @@ Face="\342\230\273"
|
||||||
## Parsers ##
|
## Parsers ##
|
||||||
#############
|
#############
|
||||||
|
|
||||||
isFunction() { [[ "$(declare -Ff "$1")" ]]; }
|
|
||||||
|
|
||||||
____atomic_top_left_parse() {
|
____atomic_top_left_parse() {
|
||||||
ifs_old="${IFS}"
|
ifs_old="${IFS}"
|
||||||
IFS="|"
|
IFS="|"
|
||||||
|
|
@ -166,7 +164,7 @@ ___atomic_prompt_clock() {
|
||||||
}
|
}
|
||||||
|
|
||||||
___atomic_prompt_battery() {
|
___atomic_prompt_battery() {
|
||||||
chk=$(isFunction battery_percentage && echo yes || echo no)
|
chk=$(command_exists battery_percentage && echo yes || echo no)
|
||||||
[ "$chk" != "yes" ] || [ "${THEME_SHOW_BATTERY}" != "true" ] && return
|
[ "$chk" != "yes" ] || [ "${THEME_SHOW_BATTERY}" != "true" ] && return
|
||||||
batp=$(battery_percentage)
|
batp=$(battery_percentage)
|
||||||
if [ "$batp" -eq 50 ] || [ "$batp" -gt 50 ]; then
|
if [ "$batp" -eq 50 ] || [ "$batp" -gt 50 ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue