added battery

This commit is contained in:
esche 2023-09-24 21:41:34 +02:00
parent a4f9aad19d
commit 7aca22798e

View file

@ -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