From 5ffac044baba3293c9f16662108828bc75793ac8 Mon Sep 17 00:00:00 2001 From: esche Date: Sun, 24 Sep 2023 21:49:32 +0200 Subject: [PATCH] no battery information shown for desktop pcs --- .config/sway/status.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/sway/status.sh b/.config/sway/status.sh index 94e85a3..c69ea9b 100644 --- a/.config/sway/status.sh +++ b/.config/sway/status.sh @@ -29,4 +29,5 @@ battery=$( output="" if [[ $is_wayland != "" ]]; then output="$is_wayland | "; fi -echo $output $battery "|" $audio_volume $audio_muted "|" $date_formatted +if [[ $battery != "" ]]; then ouptut="$output$battery | "; fi +echo $output $audio_volume $audio_muted "|" $date_formatted