This commit is contained in:
Amy 2022-10-04 20:19:55 +11:00 committed by GitHub
parent 89cf986de0
commit 8966c141ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,10 +18,10 @@ esac
vol="$(pamixer --get-volume)" vol="$(pamixer --get-volume)"
case 1 in case 1 in
$((vol >= 70)) ) icon="🔊" ;; $((vol >= 70)) ) icon="🔊" ;;
$((vol >= 30)) ) icon="🔉" ;; $((vol >= 30)) ) icon="🔉" ;;
$((vol >= 1)) ) icon="🔈" ;; $((vol >= 1)) ) icon="🔈" ;;
* ) echo m && exit ;; * ) echo 🔇 && exit ;;
esac esac
echo "$icon$vol%" echo "$icon$vol%"