123456789101112131415161718192021 |
- #!/bin/sh
- case "$1" in
- -h | --help)
- echo 'Usage: osd-sound [AMIXER-ARGS...]
- Run "amixer AMIXER-ARGS..." and display sound value in OSD.
- Without arguments, show previously displayed sound value.'
- exit 0 ;;
- *)
- if [[ -z "$@" ]]; then
- gdpipe "(osd-sound)"
- else
- quoted_args=
- for arg; do
- quoted_args="$quoted_args \"$arg\""
- done
- gdpipe "(osd-sound $quoted_args)"
- fi
- ;;
- esac
|