You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
166 B
Bash

#!/usr/bin/env sh
new_volume=$1
for sink_index in $(pacmd list-sinks | grep 'index:' | cut -b12-)
do
pactl set-sink-volume "${sink_index}" "${new_volume}"
done