Advertisement
Guest User

Untitled

a guest
Mar 4th, 2017
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3.  
  4. # .: Animated Desktop :. v16-final by *r0ot*
  5. # ENGLISH VERSION
  6. # 2008 - bash & zenity
  7.  
  8.  
  9. #Kill ANY instance xwinwrap
  10. killall xwinwrap
  11.  
  12. # VIDEOS
  13. export ATOMICCITYd='The Atomic City'
  14. export YOUR_VIDEOd='Select your own video AVI or MPG'
  15.  
  16. # COMMANDS xwinwrap VIDEOS and XSCREENSAVERS
  17. export xwinwrap_APP="xwinwrap -ni -o 1.0 -fs -s -st -sp -b -nf -- mplayer -wid WID -quiet -nosound "
  18. export xwinwrap_APPX="xwinwrap -ni -argb -fs -s -st -sp -nf -b --"
  19.  
  20. # CODE
  21. ans=$(zenity --title ".: Animated Desktop :. v16-final by *r0ot*" --window-icon="/usr/share/icons/gnome/32x32/apps/background.png" --width="550" --height="190" --list --text "Select animated desktop wall" --radiolist --column "Select" --column "animated desktop" --column "Description" TRUE "Atomic_city" "$ATOMICCITYd" FALSE "YOUR VIDEO" "$YOUR_VIDEOd"); echo $ans
  22.  
  23. if [ $? -eq 1 ] ; then
  24. exit 1
  25. fi
  26.  
  27. case $ans in
  28.  
  29.  
  30. #############################################################
  31. "Atomic_city") $xwinwrap_APP ~/.v.a-desk/atomic_city.wmv -loop 0 &
  32. zenity --info \
  33. --text "Animated desktop Biohazard loaded!";;
  34. #############################################################
  35. "glmatrix") $xwinwrap_APPX /usr/lib/xscreensaver/glmatrix -window-id WID &
  36. zenity --info \
  37. --text "Animated desktop glmatrix loaded!";;
  38. #############################################################
  39. "fiberlamp") $xwinwrap_APPX /usr/lib/xscreensaver/fiberlamp -window-id WID &
  40. zenity --info \
  41. --text "Animated desktop fiberlamp loaded!";;
  42. #############################################################
  43. "blinkbox") $xwinwrap_APPX /usr/lib/xscreensaver/blinkbox -window-id WID &
  44. zenity --info \
  45. --text "Animated desktop blinkbox loaded!";;
  46. #############################################################
  47. #############################################################
  48. #############################################################
  49. #############################################################
  50. #############################################################
  51. "YOUR VIDEO")
  52. FILE=`zenity --file-selection --title ".: Animated Desktop :. v16-final by *r0ot*" --window-icon="/usr/share/icons/gnome/32x32/apps/background.png"`
  53.  
  54. case $? in
  55. 0)
  56. $xwinwrap_APP $FILE -loop 0 &
  57. zenity --info \
  58. --text "Animated desktop \"$FILE\" loaded!";;
  59. 1)
  60. zenity --info \
  61. --text "Animated desktop CANCEL!";;
  62. -1)
  63. zenity --info \
  64. --text "Animated desktop CANCEL!";;
  65. esac
  66. ;;
  67.  
  68. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement