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.

42 lines
1.1 KiB

  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. truemute) pulsemixer --mute ;;
  9. play) mpc play ;;
  10. n*) mpc next ;;
  11. prev) mpc prev ;;
  12. t*) mpc toggle ;;
  13. p*) mpc pause ; pauseallmpv ;;
  14. f*) mpc seek +"$num" ;;
  15. b*) mpc seek -"$num" ;;
  16. r*) mpc seek 0% ;;
  17. *) cat << EOF
  18. lmc: cli music interface for mpd and pulse for those with divine intellect too
  19. grand to remember the mpc/pamixer commands.
  20. Allowed options:
  21. up NUM Increase volume (2 secs default)
  22. down NUM Decrease volume (2 secs default)
  23. mute Toggle mute
  24. truemute Mute
  25. next Next track
  26. prev Previous track
  27. toggle Toggle pause
  28. truepause Pause
  29. foward NUM Seek foward in song (2 secs default)
  30. back NUM Seek back in song (2 secs default)
  31. restart Restart current song
  32. all else Print this message
  33. All of these commands, except for \`truemute\`, \`prev\` and \`play\` can be truncated,
  34. i.e. \`lmc r\` for \`lmc restart\`.
  35. EOF
  36. esac
  37. pkill -RTMIN+10 i3blocks