dotfiles/bin/volcontrol
2021-12-16 09:39:40 +02:00

4 lines
141 B
Bash
Executable file

#!/bin/sh
pactl list sinks | grep '^[[:space:]]Volume:' | \
head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,'