From b39cde24de9bf3a91c4097685ad8fededade1aa0 Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Tue, 14 Jan 2025 18:04:31 +0100 Subject: [PATCH] [sway] Corrige les icones de volume --- .config/sway/audio.sh | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.config/sway/audio.sh b/.config/sway/audio.sh index 66c5d5d..374654c 100755 --- a/.config/sway/audio.sh +++ b/.config/sway/audio.sh @@ -17,14 +17,12 @@ if [ "$volume" -lt "10" ]; then fi -if [ "$volume" -gt "99" ]; then - echo " $volume%" -elif [ "$volume" -gt "65" ]; then - echo " $volume%" -elif [ "$volume" -gt "30" ]; then - echo " $volume%" -elif [ "$volume" -gt "10" ]; then - echo " $volume%" +if [ "$volume" -gt "84" ]; then + echo "🔊 $volume%" +elif [ "$volume" -gt "44" ]; then + echo "🔉 $volume%" +elif [ "$volume" -gt "0" ]; then + echo "🔈 $volume%" else - echo " $volume%" + echo "🔇" fi