View Full Version : Rotate your wallpapers over time
thechitowncubs
November 26th, 2005, 03:17 PM
This program was custom made for me by a developer in the nautilus channel. Thanks gicmo!
change-bg rotates your wallpaper (jpg/png) in a gnome enviornment over a specified amount of time.
https://wiki.ubuntu.com/RotateWallpapers
Zerocool10482
February 25th, 2006, 09:28 AM
How do I use this thing? I'm a newbie and I just wanted to have my wallpaper to change over time. I tried using it. Can you give me a HOWTO?
stalefries
February 25th, 2006, 12:17 PM
./change-bg <seconds> <location of wallpapers>
You type that, replacing <seconds> with the amount of seconds between wallpaper switches, then replace <location of wallpapers> with the paths to all of your wallpapers. It's not too hard.
Scratch that. I just got a boat-load of errors.
Package gnome-vfs-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gnome-vfs-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gnome-vfs-2.0' found
change-bg.c:26:35: error: libgnomevfs/gnome-vfs.h: No such file or directory
change-bg.c:27:32: error: gconf/gconf-client.h: No such file or directory
change-bg.c:28:18: error: glib.h: No such file or directory
change-bg.c:32: error: syntax error before ‘*’ token
change-bg.c:32: warning: type defaults to ‘int’ in declaration of ‘gcc’
change-bg.c:32: warning: data definition has no type or storage class
change-bg.c:34: error: syntax error before ‘*’ token
change-bg.c:34: warning: type defaults to ‘int’ in declaration of ‘uri’
change-bg.c:34: warning: data definition has no type or storage class
change-bg.c:35: error: syntax error before ‘*’ token
change-bg.c:35: warning: type defaults to ‘int’ in declaration of ‘files’
change-bg.c:35: warning: data definition has no type or storage class
change-bg.c:36: error: syntax error before ‘*’ token
change-bg.c:36: warning: type defaults to ‘int’ in declaration of ‘iter’
change-bg.c:36: warning: data definition has no type or storage class
change-bg.c:38: error: syntax error before ‘change_picture’
change-bg.c:38: error: syntax error before ‘data’
change-bg.c:39: warning: return type defaults to ‘int’
change-bg.c: In function ‘change_picture’:
change-bg.c:40: error: ‘GnomeVFSURI’ undeclared (first use in this function)
change-bg.c:40: error: (Each undeclared identifier is reported only once
change-bg.c:40: error: for each function it appears in.)
change-bg.c:40: error: ‘nuri’ undeclared (first use in this function)
change-bg.c:41: error: ‘gboolean’ undeclared (first use in this function)
change-bg.c:41: error: syntax error before ‘result’
change-bg.c:45: warning: implicit declaration of function ‘gconf_client_get_default’
change-bg.c:45: warning: assignment makes pointer from integer without a cast
change-bg.c:47: error: request for member ‘data’ in something not a structure or union
change-bg.c:48: warning: implicit declaration of function ‘gnome_vfs_uri_append_string’
change-bg.c:50: warning: implicit declaration of function ‘gnome_vfs_uri_to_string’
change-bg.c:50: error: ‘GNOME_VFS_URI_HIDE_USER_NAME’ undeclared (first use in this function)
change-bg.c:51: error: ‘GNOME_VFS_URI_HIDE_PASSWORD’ undeclared (first use in this function)
change-bg.c:52: error: ‘GNOME_VFS_URI_HIDE_TOPLEVEL_METHOD’ undeclared (first use in this function)
change-bg.c:53: error: ‘GNOME_VFS_URI_HIDE_FRAGMENT_IDENTIFIER’ undeclared (first use in this function)
change-bg.c:54: error: ‘GNOME_VFS_URI_HIDE_HOST_PORT’ undeclared (first use in this function)
change-bg.c:55: error: ‘GNOME_VFS_URI_HIDE_HOST_NAME’ undeclared (first use in this function)
change-bg.c:55: warning: assignment makes pointer from integer without a cast
change-bg.c:59: error: ‘result’ undeclared (first use in this function)
change-bg.c:59: warning: implicit declaration of function ‘gconf_client_set_string’
change-bg.c:64: warning: implicit declaration of function ‘g_free’
change-bg.c:66: error: ‘FALSE’ undeclared (first use in this function)
change-bg.c:70: error: request for member ‘next’ in something not a structure or union
change-bg.c:71: error: request for member ‘next’ in something not a structure or union
change-bg.c:76: error: ‘TRUE’ undeclared (first use in this function)
change-bg.c:77: warning: control reaches end of non-void function
change-bg.c: At top level:
change-bg.c:80: error: syntax error before ‘visit_files’
change-bg.c:80: warning: type defaults to ‘int’ in declaration of ‘gchar’
change-bg.c:80: error: syntax error before ‘*’ token
change-bg.c:85: warning: return type defaults to ‘int’
change-bg.c: In function ‘visit_files’:
change-bg.c:86: error: ‘GList’ undeclared (first use in this function)
change-bg.c:86: error: syntax error before ‘)’ token
change-bg.c:87: error: ‘recurse’ undeclared (first use in this function)
change-bg.c:87: error: ‘TRUE’ undeclared (first use in this function)
change-bg.c:89: error: ‘info’ undeclared (first use in this function)
change-bg.c:89: error: ‘GNOME_VFS_FILE_INFO_FIELDS_MIME_TYPE’ undeclared (first use in this function)
change-bg.c:90: warning: implicit declaration of function ‘g_str_equal’
change-bg.c:93: warning: implicit declaration of function ‘g_list_prepend’
change-bg.c:93: warning: implicit declaration of function ‘g_strdup’
change-bg.c:93: error: ‘rel_path’ undeclared (first use in this function)
change-bg.c:97: error: ‘recursing_will_loop’ undeclared (first use in this function)
change-bg.c:98: warning: control reaches end of non-void function
change-bg.c: In function ‘main’:
change-bg.c:103: error: ‘GnomeVFSResult’ undeclared (first use in this function)change-bg.c:103: error: syntax error before ‘result’
change-bg.c:104: error: ‘GMainLoop’ undeclared (first use in this function)
change-bg.c:104: error: ‘ml’ undeclared (first use in this function)
change-bg.c:112: warning: implicit declaration of function ‘gnome_vfs_init’
change-bg.c:117: warning: implicit declaration of function ‘gnome_vfs_make_uri_from_shell_arg’
change-bg.c:117: warning: assignment makes pointer from integer without a cast
change-bg.c:128: error: ‘result’ undeclared (first use in this function)
change-bg.c:128: warning: implicit declaration of function ‘gnome_vfs_directory_visit’
change-bg.c:129: error: ‘GNOME_VFS_FILE_INFO_GET_MIME_TYPE’ undeclared (first use in this function)
change-bg.c:130: error: ‘GNOME_VFS_FILE_INFO_FORCE_FAST_MIME_TYPE’ undeclared (first use in this function)
change-bg.c:131: error: ‘GNOME_VFS_DIRECTORY_VISIT_LOOPCHECK’ undeclared (first use in this function)
change-bg.c:132: error: ‘GNOME_VFS_DIRECTORY_VISIT_SAMEFS’ undeclared (first use in this function)
change-bg.c:136: error: ‘GNOME_VFS_OK’ undeclared (first use in this function)
change-bg.c:138: warning: implicit declaration of function ‘gnome_vfs_result_to_string’
change-bg.c:138: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
change-bg.c:142: warning: implicit declaration of function ‘gnome_vfs_uri_new’
change-bg.c:142: warning: assignment makes pointer from integer without a cast
change-bg.c:146: warning: implicit declaration of function ‘g_timeout_add’
change-bg.c:148: warning: implicit declaration of function ‘g_main_loop_new’
change-bg.c:148: error: ‘FALSE’ undeclared (first use in this function)
change-bg.c:151: warning: implicit declaration of function ‘g_main_loop_run’
JoshHendo
February 25th, 2006, 05:39 PM
Works fine for me :D.
I will post a full (noob friendly) how to on my blog soon :)
-edit-
Here is a link for those looking for a full tutorial :)
http://ubuntuos.com/2006/02/howto-rotate-your-wallpapers-over-time-gnome.html
stalefries
February 25th, 2006, 06:30 PM
Worked! I missed that part of the dependencies. By the way, would it be possible to add this to some start-up script or other?
bicchi
February 25th, 2006, 06:45 PM
Worked! I missed that part of the dependencies. By the way, would it be possible to add this to some start-up script or other?
Follow the menu: System -> Preferences -> Sessions
[Startup Programs] [Add] . . . . .
i3dmaster
February 26th, 2006, 12:03 AM
very nice! good job man!
ShiftyPowers
April 9th, 2006, 05:33 PM
anyone know an easy way to have this start everytime a gnome session starts? I have it working, which is awesome, but it would be really cool to not have to start terminal every time.
sYs^
April 10th, 2006, 01:26 AM
anyone know an easy way to have this start everytime a gnome session starts? I have it working, which is awesome, but it would be really cool to not have to start terminal every time.
Man, just read the comments:
Follow the menu: System -> Preferences -> Sessions
[Startup Programs] [Add] . . . . .
worty
April 10th, 2006, 12:08 PM
I haven't tested this specific prog but there's another one out there that I use called Wallpaper Tray that works pretty well too.
lotu5
May 9th, 2006, 01:59 PM
this is cool, but for large wallpapers it can be a bit jarring. what would be really awesome would be to implement the kind of fading that mac os x does between desktops...
since this program just tells gnome what to do, it seems like that feature would have to go into the gnome desktop program itself. it looks like gnome pixbufs do have alpha values though, so it shoudl be possible...
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.