Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- sleep 0.5;
- choice="$1"
- if [ "$choice" == "play" ] || [ "$choice" == "playpause" ] || [ "$choice" == "pause" ]; then
- xdotool key XF86AudioPlay
- elif [ "$choice" == "up" ] || [ "$choice" == "volumeup" ]; then
- xdotool key XF86AudioRaiseVolume
- elif [ "$choice" == "down" ] || [ "$choice" == "volumedown" ]; then
- xdotool key XF86AudioLowerVolume
- elif [ "$choice" == "mute" ] ; then
- xdotool key XF86AudioMute
- elif [ "$choice" == "next" ] ; then
- xdotool key XF86AudioNext
- elif [ "$choice" == "prev" ] ; then
- xdotool key XF86AudioPrev
- fi
Add Comment
Please, Sign In to add comment