dotfiles/bin/.bin/volume

9 lines
136 B
Plaintext
Raw Normal View History

#!/bin/bash
if [ $(pgrep pulseaudio >/dev/null) ]; then
volume_command=pulseaudio-ctl
else
volume_command=avol
fi
$volume_command $@