Dotfiles for different machines on different branches.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
508 B

  1. #!/bin/sh
  2. # A general audio interface for LARBS.
  3. [ -z "$2" ] && num="2" || num="$2"
  4. case "$1" in
  5. u*) pulsemixer --change-volume +"$num" ;;
  6. d*) pulsemixer --change-volume -"$num" ;;
  7. m*) pulsemixer --toggle-mute ;;
  8. *) cat << EOF
  9. lmc: cli music interface for pulse for those with divine intellect too
  10. grand to remember the pamixer commands.
  11. Allowed options:
  12. up NUM Increase volume (2 secs default)
  13. down NUM Decrease volume (2 secs default)
  14. mute Toggle mute
  15. all else Print this message
  16. EOF
  17. esac