marioortizmanero / polybar-pulseaudio-control

A feature-full Polybar module to control PulseAudio
MIT License
471 stars 49 forks source link

Help message rather than showing the status by default #11

Closed marioortizmanero closed 4 years ago

marioortizmanero commented 4 years ago

Currently, there is no --help parameter. This would come in handy for new users, and should also point to this repository.

This would mean that whenever an argument isn't found, rather than calling output, the help message would be shown. Current behaviour:

case "$1" in
    --up)
        volUp
        ;;

    # Other arguments

    *)
        # By default print output for bar.
        output
        ;;
esac