Skip to content

Commit

Permalink
Adds functions to add fine grained volume control
Browse files Browse the repository at this point in the history
The function vd lowers the volume by the given percentage. The function vu
raises the volume by the given percentage. Note that the percent sign should not
be passed to the function.
  • Loading branch information
trianglesphere committed Mar 26, 2016
1 parent 423db92 commit 0067bbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zsh/vd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function vd() {
pactl set-sink-volume 1 -$1%
}
3 changes: 3 additions & 0 deletions zsh/vu
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function vu() {
pactl set-sink-volume 1 +$1%
}

0 comments on commit 0067bbf

Please sign in to comment.