View previous topic :: View next topic |
Author |
Message |
2uncas Apprentice
Joined: 22 Oct 2004 Posts: 287 Location: Cogolludo (Guadalajara)
|
Posted: Mon Nov 27, 2006 11:35 am Post subject: [Sofware] Cambiar Fondo escritorio con Xplanet |
|
|
Hola, estoy intentado poner de fondo de pantalla la imagen del mundo actualizada con las nubes actuales con Xplanet. Para ello, he visto este script (basado en una instalación en Debian) y quiero ajustarla a Gentoo, pero no consigo entender o saber como se puede automatizar.
La duda fundamental, es saber como le indico a mi escritorio que tiene que cambiar el fondo con la imagen generada, es decir, teoricamente este script lo que hace es en función de unos ficheros, generar otro con la salida de ambos (hasta ahí lo consigo) pero luego soy incapaz de saber como cambiar el fondo de escritorio de la sesión actual. La línea "gconftool-2 -t str -s /desktop/gnome/background/picture_filename "$PREFIX$OUTPUT" " es la que debería hacerlo pero no lo consigo. He mirado en la estructura de directorios y he visto que tengo un ".gnome" y un fichero "backgrounds.xml" donde se definen los fondos de escritorio y a donde se refiere esa línea de código, o por lo menos eso entiendo.
¿Esta ruta es la misma en Debian que en Gentoo?,
Gracias.
Quote: |
#!/bin/bash
#Cada cuanto tiempo se renovará la imagen
DELAY=30m
#Lugar donde se alojará la imagen
PREFIX=/home/fsancho/xplanet/images
#Fichero de salida
OUTPUT=xplanetBkg.png
#Tamaño de la imagen
GEOMETRY=1024x768
#Lugar desde donde se observa la imagen. Actualmente se ve europa en primer plano
LONGITUDE=10
LATITUDE=40
if test -e "$PREFIX$OUTPUT"; then
rm "$PREFIX$OUTPUT"
OUTPUT="_$OUTPUT"
else
rm "$PREFIX""_$OUTPUT"
fi
# Comando que genera la imagen
xplanet -num_times 1 -output "$PREFIX$OUTPUT" -geometry $GEOMETRY -longitude $LONGITUDE -latitude $LATITUDE
gconftool-2 -t str -s /desktop/gnome/background/picture_filename "$PREFIX$OUTPUT"
sleep $DELAY
exec $0
|
|
|
Back to top |
|
|
ekz l33t
Joined: 21 Jun 2006 Posts: 994 Location: Temuco - Chile
|
|
Back to top |
|
|
Stolz Moderator
Joined: 19 Oct 2003 Posts: 3028 Location: Hong Kong
|
Posted: Sat Dec 23, 2006 12:36 pm Post subject: |
|
|
Otro hilo con scripts para Gentoo: 214281
En el FAQ de la pagina oficial se puede leer Quote: |
Make sure this script is executed at Gnome startup. There are several ways to do this:
* Using Gnome session manager. Select Applications (the Footer menu) -> Desktop Preferences -> Advanced -> Sessions and hit the Startup Programs tab. Click Add and browse to where you saved the above script and select it. Click OK. Hit the Current Sessions tab and click Apply. That's it. Remove this entry if you don't want XPlanet backgrounds any more.
* Call the script in an X11 startup script like /home/nazgul/xplanet-gnome.sh & . Do not omit the & .
* Invoke the script in a terminal
|
En la página original del script menciona Quote: | Be sure to chmod a+x the script, i.e. set it executable for all users. And do not forget to adjust the variables, especially PREFIX and OUTPUT. Also LONGITUDE and LATITUDE may need tweaking, they currently point to beautiful Europe in this example (home, sweet home). |
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|