added battery
This commit is contained in:
parent
a4f9aad19d
commit
7aca22798e
1 changed files with 11 additions and 1 deletions
|
@ -19,4 +19,14 @@ is_wayland=$(
|
||||||
}
|
}
|
||||||
')
|
')
|
||||||
|
|
||||||
echo $is_wayland "|" $audio_volume $audio_muted "|" $date_formatted
|
battery=$(
|
||||||
|
acpi -b |
|
||||||
|
awk '{
|
||||||
|
print $4+0 "%"
|
||||||
|
if($3=="Charging,") print "🔌";
|
||||||
|
print ($4+0>25) ? "🔋" : "🪫";
|
||||||
|
}')
|
||||||
|
|
||||||
|
output=""
|
||||||
|
if [[ $is_wayland != "" ]]; then output="$is_wayland | "; fi
|
||||||
|
echo $output $battery "|" $audio_volume $audio_muted "|" $date_formatted
|
||||||
|
|
Loading…
Reference in a new issue