![]() ![]() Xwinwrap.c:225: error: ‘XWMHints’ undeclared (first use in this function) Xwinwrap.c:224: error: expected ‘ ’ before ‘xsh’ Xwinwrap.c:224: error: ‘XSizeHints’ undeclared (first use in this function) ![]() Xwinwrap.c:222: error: expected ‘ ’ before ‘p_desktop’ Xwinwrap.c:221: error: expected ‘ ’ before ‘root’ Xwinwrap.c:220: error: expected ‘ ’ before ‘win’ Xwinwrap.c:220: error: ‘Window’ undeclared (first use in this function) Xwinwrap.c:219: error: ‘dpy’ undeclared (first use in this function) Xwinwrap.c:219: error: for each function it appears in.) Xwinwrap.c:219: error: (Each undeclared identifier is reported only once Xwinwrap.c:219: error: ‘Display’ undeclared (first use in this function) Xwinwrap.c:177: error: expected ‘=’, ‘,’, ‘ ’, ‘asm’ or ‘_attribute_’ before ‘find_desktop_window’ Xwinwrap.c:97: error: expected ‘)’ before ‘*’ token Xwinwrap.c:45:36: error: X11/extensions/Xrender.h: No such file or directory Xwinwrap.c:44:34: error: X11/extensions/shape.h: No such file or directory Xwinwrap.c:42:24: error: X11/Xproto.h: No such file or directory Xwinwrap.c:41:23: error: X11/Xatom.h: No such file or directory Xwinwrap.c:40:23: error: X11/Xutil.h: No such file or directory Xwinwrap.c:39:22: error: X11/Xlib.h: No such file or directory Gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -lX11 -lXext -lXrender xwinwrap.c -o xwinwrap To stop the magic happening either Ctrl-C the command if you ran it from the terminal or hit Alt-F2 and type: There you go, an animated background using a few megs of ram and an imperceptible amount of cpu time. Also, for some reason the image will appear always on top when it's loaded from boot, one solution is to add a "sleep 5" on top of the script to make sure it loads after the rest of your desktop. Notes: You have to put the complete path to the script in here because gnome doesn't respect the $PATH variable. You'll probably want to start this script when you login so hit the gnome menu -> system -> preferences -> sessions hit Add and make up a name and copy the command into the appropriate box. Now when we can make our background move: Save this file as gifbg.sh and let's not forget to make it executable: SCRH=`xrandr | awk '/current/ -ov -ni -s -nf - gifview -w WID $1 -a # Uses xwinwrap to display given animated. ![]() I've created a little script to make centering a gif easy for myself so open up your favorite text editor and copy and paste the following: Let's change into that newly created directory and compile it and then install it. Sudo apt-get install bzr build-essential gifsicle Ok we need the source from launchpad, but first we need to install bazaar to get the code, gcc to compile it, and gifsicle to actually display the gifs: We're going to grab Shantz modified (i.e. The only caveat is that if you happen to have icons on your desktop the gif may cover these up if it's big enough.Īlright let's open a terminal window and get down to business. I've only tested it in gnome on Hardy Heron. This is a guide to getting an animated gif centered on your desktop background. If you are a ds106er who likes playing with animating gifs, gifsicle is a very useful addition to your toolkit.So you went to put that funny animated gif as your desktop background but only the first frame appeared, static and alone? Cheer up, we can make it move. Gifsicle –resize-width 500 –delay=60 –loop –colors 256 *.gif > eagle256.gif Using a set of coloured gifs exportedfrom the jpegs: Gifsicle –resize-width 500 –delay=60 –loop *.gif > eagle.gif Using a set of gifs created from these photos (and a few more), first set converted to B & W in FireWorks: You are then ready to convert a bunch of gif files into an animated gif. Wait a while as a lot of text scrolls by and it is done.īrew install gifsicle and pressing return. You do need to install homebrew but you do that by copying a line of code from the homebrew site and pasting it into the terminal. I checked the site for updates today and noticed that there is now a Mac OS X homebrew package.įor folk like myself who do not spend much time on the commandline this is a simpler way to install (as compared to downloading the source and compiling). I’ve blogged about it before, and created a simple gui for it to grab animated gifs from a movie. Gifsicle is a commandline tool for animating gifs. ![]()
0 Comments
Leave a Reply. |