fix(vol): % calc error

This commit is contained in:
ange 2024-04-26 18:10:57 +02:00
parent 1fb88d0ee7
commit 4be53c2809
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
2 changed files with 1 additions and 7 deletions

View file

@ -15,7 +15,7 @@ function update_vol() {
}
read -r _ CUR MUTE < <(wpctl get-volume "$SINK")
CUR="${CUR/#0/}"; CUR="${CUR/#./}"
CUR="$(("10#${CUR/./}"))"
if [ -z "$1" ]; then
echo "$CUR"