Guest User

Untitled

a guest
Dec 18th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #!/bin/bash
  2. sleep 0.5;
  3. choice="$1"
  4. if [ "$choice" == "play" ] || [ "$choice" == "playpause" ] || [ "$choice" == "pause" ]; then
  5. xdotool key XF86AudioPlay
  6. elif [ "$choice" == "up" ] || [ "$choice" == "volumeup" ]; then
  7. xdotool key XF86AudioRaiseVolume
  8. elif [ "$choice" == "down" ] || [ "$choice" == "volumedown" ]; then
  9. xdotool key XF86AudioLowerVolume
  10. elif [ "$choice" == "mute" ] ; then
  11. xdotool key XF86AudioMute
  12. elif [ "$choice" == "next" ] ; then
  13. xdotool key XF86AudioNext
  14. elif [ "$choice" == "prev" ] ; then
  15. xdotool key XF86AudioPrev
  16. fi
Add Comment
Please, Sign In to add comment