mpv-audio.sh 205 B

123456789
  1. #!/usr/bin/env bash
  2. set -euo pipefail # bash strict mode
  3. notify-send "$TERM"
  4. if [[ $TERM == 'linux' || $TERM == 'dumb' ]]; then
  5. mpv --volume=50 "$@"
  6. else
  7. mpv --volume=50 --no-audio-display "$@"
  8. fi