[Shell] Add pavolume function
This commit is contained in:
parent
1849649ed4
commit
ee10889607
@ -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,'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user