How to use animated gif as wallpaper

Forum rules
Before you post please read how to get help

How to use animated gif as wallpaper

Postby dlpr on Sun Jan 04, 2009 12:49 pm

ello, and hapy new year.

For my little daughter (my, I want to use and animated gif I created as wallparer. Is it possible ? If yes, how ?

Thanks a lot.

Linux Mint is funded by ads and donations.

Re: How to use animated gif as wallpaper

Postby merlwiz79 on Sun Jan 11, 2009 2:46 am

Download and install
apt install gifsicle
Open a text editor and paste this in it.
Code: Select all
# Uses xwinwrap to display given animated .gif in the center of the screen

if [ $# -ne 1 ]; then
    echo 1>&2 Usage: $0 image.gif
    exit 1

#get screen resolution
SCRH=`xrandr | awk '/current/ { print $8 }'`
SCRW=`xrandr | awk '/current/ { print $10 }'`

#get gif resolution
IMGHW=`gifsicle --info $1 | awk '/logical/ { print $3 }'`

#calculate position

xwinwrap -g ${IMGHW}+${POSH}+${POSW} -ov -ni -s -nf -- gifview -w WID $1 -a

exit 0
Now save the file as
Run this in terminal
Code: Select all
chmod +x

Now run
Code: Select all
./ /path/to/animated.gif
User avatar
Level 11
Level 11
Posts: 3640
Joined: Wed Apr 04, 2007 1:50 pm
Location: Here again :)

Return to MATE

Who is online

Users browsing this forum: No registered users and 4 guests