daily pastebin goal
45%
SHARE
TWEET

Untitled

a guest Mar 14th, 2012 18 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. echo "P. play / pausa"
  3. echo "N. next"
  4. echo "A. anterior"
  5. echo "0. salir"
  6. echo "ingrese valor:"
  7.  
  8. read valor
  9. #PLAY / PAUSA
  10. if [ $valor = P ]
  11.                 then
  12.                 DISPLAY=:0 rhythmbox-client --play-pause --print-playing
  13.         wait 2
  14.         clear
  15. fi
  16.  
  17. ./CR.sh
  18.  
  19. if [ $valor = p ]
  20.         then
  21.         DISPLAY=:0 rhythmbox-client --play-pause --print-playing
  22.         wait 2
  23.         clear
  24. fi
  25.  
  26. ./CR.sh
  27.  
  28. #PROXIMA
  29. if [ $valor = N ]
  30.         then
  31.         DISPLAY=:0 rhythmbox-client --next --print-playing
  32.         wait 2
  33.         clear
  34. fi
  35.  
  36. ./CR.sh
  37.  
  38. if [ $valor = n ]
  39.         then
  40.         DISPLAY=:0 rhythmbox-client --next --print-playing
  41.         wait 2
  42.         clear
  43. fi
  44.  
  45. ./CR.sh
  46.  
  47. #ANTERIOR
  48. if [ $valor = A ]
  49. then
  50. DISPLAY=:0 rhythmbox-client --previous --print-playing
  51. clear
  52. if [ $valor = P ]
  53. then
  54. DISPLAY=:0 rhythmbox-client --previous --print-playing
  55. clear
  56. #SALIR
  57. if [ $valor = 0 ]
  58. then
  59. exit 0
  60. clear
  61. else
  62. echo "valor incorrecto"
  63. fi
  64. exit 0
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top