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