fix: get-volume command
This commit is contained in:
parent
96b5d2aceb
commit
c6a22a173c
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
SINK='@DEFAULT_SINK@'
|
SINK='@DEFAULT_SINK@'
|
||||||
CUR="$(pactl get-sink-volume "$DEFAULT_SINK" | awk '$1 == "Volume:" {print substr($5, 1, length($5) - 1)}')"
|
CUR="$(pactl get-sink-volume "$SINK" | awk '$1 == "Volume:" {print substr($5, 1, length($5) - 1)}')"
|
||||||
CUR="$((CUR - CUR % "$1"))"
|
CUR="$((CUR - CUR % "$1"))"
|
||||||
|
|
||||||
case "${1:0:1}" in
|
case "${1:0:1}" in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue