[Shell] Add pavolume function

This commit is contained in:
Ivan Malison 2016-11-10 21:09:24 -08:00
parent 1849649ed4
commit ee10889607
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -1 +1,6 @@
command_exists 'open' || command_exists 'xdg-open' && alias open='xdg-open'
pavolume () {
pactl list sinks | grep '^[[:space:]]Volume:' | \
head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,'
}