Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # .: Animated Desktop :. v16-final by *r0ot*
- # ENGLISH VERSION
- # 2008 - bash & zenity
- #Kill ANY instance xwinwrap
- killall xwinwrap
- # VIDEOS
- export ATOMICCITYd='The Atomic City'
- export YOUR_VIDEOd='Select your own video AVI or MPG'
- # COMMANDS xwinwrap VIDEOS and XSCREENSAVERS
- export xwinwrap_APP="xwinwrap -ni -o 1.0 -fs -s -st -sp -b -nf -- mplayer -wid WID -quiet -nosound "
- export xwinwrap_APPX="xwinwrap -ni -argb -fs -s -st -sp -nf -b --"
- # CODE
- 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
- if [ $? -eq 1 ] ; then
- exit 1
- fi
- case $ans in
- #############################################################
- "Atomic_city") $xwinwrap_APP ~/.v.a-desk/atomic_city.wmv -loop 0 &
- zenity --info \
- --text "Animated desktop Biohazard loaded!";;
- #############################################################
- "glmatrix") $xwinwrap_APPX /usr/lib/xscreensaver/glmatrix -window-id WID &
- zenity --info \
- --text "Animated desktop glmatrix loaded!";;
- #############################################################
- "fiberlamp") $xwinwrap_APPX /usr/lib/xscreensaver/fiberlamp -window-id WID &
- zenity --info \
- --text "Animated desktop fiberlamp loaded!";;
- #############################################################
- "blinkbox") $xwinwrap_APPX /usr/lib/xscreensaver/blinkbox -window-id WID &
- zenity --info \
- --text "Animated desktop blinkbox loaded!";;
- #############################################################
- #############################################################
- #############################################################
- #############################################################
- #############################################################
- "YOUR VIDEO")
- FILE=`zenity --file-selection --title ".: Animated Desktop :. v16-final by *r0ot*" --window-icon="/usr/share/icons/gnome/32x32/apps/background.png"`
- case $? in
- 0)
- $xwinwrap_APP $FILE -loop 0 &
- zenity --info \
- --text "Animated desktop \"$FILE\" loaded!";;
- 1)
- zenity --info \
- --text "Animated desktop CANCEL!";;
- -1)
- zenity --info \
- --text "Animated desktop CANCEL!";;
- esac
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement