Mailinglist Archive: opensuse-es (2025 mails)

< Previous Next >
Re: [opensuse-es] Xplanet [Era: KDE4]
  • From: csalinux <csalinux@xxxxxxxxx>
  • Date: Tue, 06 Jan 2009 14:29:12 +0100
  • Message-id: <49635CA8.2060305@xxxxxxxxx>
Carlos E. R. escribió:


El 2009-01-06 a las 14:20 +0100, Camaleón escribió:

No, es que es al revés: es Plasma quien tiene que entenderse con
xplanet,
es lo que quiero decir. La manera más fácil es generar un png y
decirle al
entorno que lo recargue periodicamente.

En KDE4 está "marble":

***
marble

Marble is a generic geographical map widget that is meant to be used
by KDE4 applications. It shows the earth as a sphere but doesn't make
use of any hardware acceleration (No OpenGL). So although it might
look similar to applications like Google Earth or Nasa World Wind it's
rather meant to be a small light weight multi purpose widget.
***

Es decir, algo de eso permite. Ahora bien, meter el xplanet tal cual,
sin adaptarlo al plasma, creo que al menos en kde 4.1 no funciona.

Ni con kde ni con ninguno. El xearth no sabe decirle ni al kde ni al
gnome que pinte un fondo de pantalla. Puede pintar una ventana, puede
pintar la ventana raiz, que será machacada por el kde y no funcionará. O
puede generar un fichero.

-- Saludos
Carlos E.R.

How can I get xplanet to work with KDE?
From Jeremy Sonander <Jeremy at saros dot com>:
- Right click on the backdrop, and select "Configure desktop"
- Select Background
- Go to the Wallpaper tab and select no wallpaper
- Go to the Background tab and select Background Program from the
Mode tab
- Click Setup
- There should already be an Xplanet entry. Select this and click
Modify
- The Command and Preview Command should be
xplanet --num_times 1 --geometry %xx%y --latitude 20 --output
%f.png && mv %f.png %f


How can I get xplanet to work with Gnome2?
Modify the following script to suit your preferences, from
http://stef.tvk.rwth-aachen.de/~nazgul/linux-hacks.php:

#!/bin/bash
#xplanet-gnome.sh shell script v0.2
#shows Earth on your Gnome desktop with current lighting conditions,i.e.
day and night

DELAY=30m

PREFIX=/multimedia/wallpapers/
OUTPUT=xplanet.png
APPEND=2

GEOMETRY=1024x768
LONGITUDE=15
LATITUDE=30
#default is no projection,i.e. render a globe
#rectangular is the flat world map. also try ancient, azimuthal,
mercator,..
#PROJECTION=rectangular

#rename background image so Gnome realises image has changed - thx to
dmbasso

if [ -e "$PREFIX$OUTPUT" ]; then
rm "$PREFIX$OUTPUT"
OUTPUT="$APPEND$OUTPUT"
else
rm "$PREFIX$APPEND$OUTPUT"
fi

if [ -z $PROJECTION ]; then
xplanet -num_times 1 -output "$PREFIX$OUTPUT" -geometry $GEOMETRY
-longitude $LONGITUDE -latitude $LATITUDE
else
xplanet -num_times 1 -output "$PREFIX$OUTPUT" -geometry $GEOMETRY
-longitude $LONGITUDE -latitude $LATITUDE -projection $PROJECTION
fi

#update Gnome backgound
gconftool -t str -s /desktop/gnome/background/picture_filename
"$PREFIX$OUTPUT"

sleep $DELAY
exec $0

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 & .
--

Saludos.

César


Enfréntate a los malos; enfréntate a los crueles; enfréntate a todos,
menos a los tontos. Son demasiados y siempre serás derrotado.

(Proverbio hindú)
--
Para dar de baja la suscripción, mande un mensaje a:
opensuse-es+unsubscribe@xxxxxxxxxxxx
Para obtener el resto de direcciones-comando, mande
un mensaje a:
opensuse-es+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups