- #!/bin/bash
- echo "P. play / pausa"
- echo "N. next"
- echo "A. anterior"
- echo "0. salir"
- echo "ingrese valor:"
- read valor
- #PLAY / PAUSA
- if [ $valor = P ]
- then
- DISPLAY=:0 rhythmbox-client --play-pause --print-playing
- wait 2
- clear
- fi
- ./CR.sh
- if [ $valor = p ]
- then
- DISPLAY=:0 rhythmbox-client --play-pause --print-playing
- wait 2
- clear
- fi
- ./CR.sh
- #PROXIMA
- if [ $valor = N ]
- then
- DISPLAY=:0 rhythmbox-client --next --print-playing
- wait 2
- clear
- fi
- ./CR.sh
- if [ $valor = n ]
- then
- DISPLAY=:0 rhythmbox-client --next --print-playing
- wait 2
- clear
- fi
- ./CR.sh
- #ANTERIOR
- if [ $valor = A ]
- then
- DISPLAY=:0 rhythmbox-client --previous --print-playing
- clear
- if [ $valor = P ]
- then
- DISPLAY=:0 rhythmbox-client --previous --print-playing
- clear
- #SALIR
- if [ $valor = 0 ]
- then
- exit 0
- clear
- else
- echo "valor incorrecto"
- fi
- exit 0
SHARE
TWEET
Untitled
a guest
Mar 14th, 2012
18
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data

