fix(vol): % calc error
This commit is contained in:
parent
1fb88d0ee7
commit
4be53c2809
2 changed files with 1 additions and 7 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue