Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- IFS='
- '
- # Change this to where the wallpapers are stored
- DIR="$HOME/etc/wallpaper"
- while true
- do
- PIC=$(ls $DIR/*.* | shuf -n1)
- # Uncomment based on desktop environment
- # XFCE:
- #/usr/bin/xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/image-path -s ${PIC}
- #/usr/bin/xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/image-style -s 5
- # GNOME2
- #gconftool-2 --type=string --set /desktop/gnome/background/picture_filename ${PIC}
- #gconftool-2 --type=string --set /desktop/gnome/background/picture_options zoom
- # GNOME/Unity/Cinnamon
- #gsettings set org.gnome.desktop.background picture-uri file://${PIC}
- #gsettings set org.gnome.desktop.background picture-options zoom
- # Generic - uses feh
- #feh --bg-fill ${PIC}
- sleep 120
- done
Advertisement
Add Comment
Please, Sign In to add comment