diff --git a/.config/sway/status.sh b/.config/sway/status.sh index 8836ebe..94e85a3 100644 --- a/.config/sway/status.sh +++ b/.config/sway/status.sh @@ -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