Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

alsavol: set based on percentage

  • Loading branch information...
commit c7d7f07696efb762797d459c703930e973953e2b 1 parent 8b98d13
@falconindy authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 alsavol
View
4 alsavol
@@ -17,7 +17,7 @@ setvol() {
local channel=$1 level=$2
(( $# == 2 )) || return 1
- amixer -q set "$channel" "$level"
+ amixer -q set "$channel" "$level%"
}
is_muted() {
@@ -83,7 +83,7 @@ increase() {
newvol=$(( curvol + increment ))
(( newvol > 100 )) && newvol=100
- setvol "$channel" "$(( curvol + increment ))"
+ setvol "$channel" "$(( newvol ))"
echo "$newvol"
}
Please sign in to comment.
Something went wrong with that request. Please try again.