Re : [Conky] Alternative à weather.com (3)

Bon j'ai trouvé ça:

Changing desktop background from command line

Needing-a-change-of-scenery asks: Is there a way I can change my desktop background from the command line?

DistroWatch answers: It is possible, though on modern desktops it isn't exactly simple. Changing the desktop's background is something developers assume you will be doing from within the comforting embrace of a GUI. That being said there are some hacks you can perform on the command line to change the background. Let's take a look at how we can do this in KDE 4. First, if you want to find out what the path is to your current background image, run:

Just substitute the image path I used at the end of the line with your own. If you try this you will probably notice your background image hasn't changed. That is because we need to get Plasma, the program which handles the KDE background, to re-read its configuration. One way to do that is to shut down the Plasma process and then re-launch it:

pkill plasma plasma-desktop &

For people running the GNOME 3 desktop or the Unity desktop life is a little easier when it comes to adjusting the background. From the terminal we can run the following to get the path of our current background image:

The Xfce desktop uses a concept called backdrops, so if you're running Xfce make sure you have created a backdrop under the Settings Manager's Desktop Control app. Then run the following commands to set your wallpaper and refresh the desktop:

Looking over the above options, this is probably one of those times when it's easier to use the graphical configuration tools provided by the desktop environment rather than dropping down to the command line.

Re : [Conky] Alternative à weather.com (3)

ragamatrix a écrit :

Bon j'ai trouvé ça: Changing desktop background from command line

Needing-a-change-of-scenery asks: Is there a way I can change my desktop background from the command line?

DistroWatch answers: It is possible, though on modern desktops it isn't exactly simple. Changing the desktop's background is something developers assume you will be doing from within the comforting embrace of a GUI. That being said there are some hacks you can perform on the command line to change the background. Let's take a look at how we can do this in KDE 4. First, if you want to find out what the path is to your current background image, run:

Just substitute the image path I used at the end of the line with your own. If you try this you will probably notice your background image hasn't changed. That is because we need to get Plasma, the program which handles the KDE background, to re-read its configuration. One way to do that is to shut down the Plasma process and then re-launch it: