Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there a way to put an active website, such as Gmail, as your Desktop background in Gnome, running Ubuntu 10.10 64-bit? MS Win calls it "Active Desktop".

share|improve this question
    
@AthloX: I have a question as there is something not quite clear. When you set your desktop wallpaper how do you expect to trigger changing websites (you elude to an need for multiple websites). There are more practical options to achieve what you need "I want to see the live feeds of any of the selected site" like creating a Fogger launcher and running it on startup for example. Can you edit your question to provide more clarity as I think there maybe 2 questions above –  Stephen Myall Aug 11 '12 at 9:46
1  
@StephenMyall: Is now my question asked correct or still confusion.I want website to show as active background even though i wont be interact with it just a update to show so that i get in touch always no need to open website in browser always –  Amit Rane Aug 11 '12 at 9:52
add comment

5 Answers 5

The easy way

(which installs a graphical program that does the job for you)

Wallch has this feature now implemented! You may download and install the PPA:

For 13.10/14.04:

sudo add-apt-repository ppa:wallch/3+
sudo apt-get update && sudo apt-get install wallch

For 12.04:

sudo add-apt-repository ppa:wallch/12.04-3+
sudo apt-get update && sudo apt-get install wallch

The hard way

(which installs only what is needed and requires a little bit of command line usage)

My answer will guide you through on how to have your desktop background updated on an interval of your choice of a website of your choice.

After a search on the source code of the program Shutter so as to see what trick does it do so as to capture a web site, I found an easier way to do it, so I've edited my answer.

The easiest way around is the following:

First, install a small package:

sudo apt-get install gnome-web-photo

When the above command finishes running, then run the following inside your terminal:

mkdir -p ~/Documents/web_image
cd ~/Documents/web_image

Now, a folder under your ~/Documents folder named web_image has been created.

In this folder, place the following script, called update_background.sh:

#!/bin/bash
screen_width=1280 #<--set here your screen's width dimension
interval="300" #<--set here the seconds you want to sleep till the next update

while true; do
   gnome-web-photo --timeout=30 --mode=photo --width=$screen_width "http://google.com" $HOME/Documents/web_image/output.png
   gsettings set org.gnome.desktop.background picture-uri file://$HOME/Documents/web_image/output.png
   echo "Sleeping $interval seconds till the next update..."
   sleep $interval
done

In the above bash script, you may edit 4 parameters: screen_width is your screen's width (the same width will be the site), interval is the interval to wait till the next update of the picture, the timeout (which is a parameter on the gnome-web-photo command) which is the timeout to wait for the creation of the picture to wait, and also edit the site, which, by default I have set it to be http://google.com. You may change it to whatever you want.

After saving the script, give it executable permissions (chmod +x update_background.sh or right click on it->properties->permissions->allow executing file as program) and run it through a terminal.

This is how it looks like at my desktop background, with the site askubuntu.com:

enter image description here

NOTE: Sites' first page can be very long, take for example askubuntu.com. This is apparently a problem, you can solve this problem with programs like imagemagick. You can edit/crop etc. the image before setting it as desktop background (before the gsettings command). You can crop the image like this:

convert $HOME/Documents/web_image/output2.png -crop 300x300+0+0 $HOME/Documents/web_image/output2.png

The convert command is at the imagemagick package (sudo apt-get install imagemagick). Note that you have to find the dimensions that fit best (e.g. 300x300 is very small in this case, it is just an example...)

PS: You can set the update_background.sh script to start on login: Run simple bash script to start applications at login, but it would be nice to wait till you have internet connection. So, before the while loop in that script place this:

while ! ping -c 1 google.com > /dev/null 2> /dev/null; do
  echo "Waiting for internet connection..."
  sleep 3
done

So, along with the above, if you set the script running at startup and you want to crop the image, then the update_background.sh should look like something like this:

#!/bin/bash
screen_width=1280 #<--set here your screen's width dimension
interval="300" #<--set here the seconds you want to sleep till the next update

while true; do
   gnome-web-photo --timeout=30 --mode=photo --width=$screen_width "http://google.com" $HOME/Documents/web_image/output.png
   convert $HOME/Documents/web_image/output.png -crop 300x300+0+0 $HOME/Documents/web_image/output.png
   gsettings set org.gnome.desktop.background picture-uri file://$HOME/Documents/web_image/output.png
   echo "Sleeping $interval seconds till the next update..."
   sleep $interval
done
share|improve this answer
    
+1 Im impressed (if it works) –  Stephen Myall Aug 11 '12 at 10:09
    
I tried it and it works fine :) –  hakermania Aug 11 '12 at 10:13
    
+100 Very Impressive work and well studied. Wow @hakermania: you have done your home work really excellent. I m going to try this now. Thanks your answer is the best –  Amit Rane Aug 11 '12 at 10:22
    
Thanks @AthloX, remember to first try an answer and then set it as correct! Also, keep in mind that I found how to do it in a blog (as I say in my answer), so I didn't do anything impressive. I just connected some things (wait for internet connection, get image, crop image, set it as desktop background) so as to fit your situation... –  hakermania Aug 11 '12 at 10:25
    
ITS WORKING what i wanted so i set as correct answer @hakermania –  Amit Rane Aug 11 '12 at 10:26
add comment

Your best bet might be the screenlet project. The webframe screenlet does indeed allow you to embed your gmail, albeit, it's the mobile version by default. Perhaps you can find a way to change it. Screenshot below.

Screenlets can either sit on your desktop directly, or combined with the widget layer of Compiz, called up over existing windows, like the Mac handles its gadgets/widgets (whatever they're called - I've forgotten).

sudo apt-get install screenlets

Install via the software center

You'll have to visit the site to download the third party webframe screenlet. I've just tried it and the installer will complain that webframe isn't packaged correctly, but it installs perfectly nonetheless:

enter image description here

Might also be worth noting that I'm fairly sure that KDE bundles this kind of functionality out of the box with its "plasma" framework. Just a thought.

share|improve this answer
add comment

You can use xwinwrap to get any application on your desktop. It was made with a "videos for wallpaper" idea in mind but I think that it can stick any application on your desktop just fine (so you can just stick a fullscreen browser on your desktop)

You can find xwinwrap here but I think that there is a newer version around; couldn't find it though.

share|improve this answer
add comment

Conky

Conky is probably one option you should explore. I cannot give you exact instructions as its something I have never tried.

Conky is a system monitor that displays on your screen's desktop. It's also very modular. It can display the output of any command line program. You can view RSS feeds by using a the Conky RSS functions, or a separate program or script.


You can find instructions here. How to create an RSS feed using Conky

share|improve this answer
    
Can CONKY would display whole website as my desktop background ? –  Amit Rane Aug 11 '12 at 9:31
    
@AthloX: I have been very specific in my answer to point out that I have never tried this AND its only an option. This option meets your need "I want to see the live feeds of any of the selected site" –  Stephen Myall Aug 11 '12 at 9:39
    
Sorry my mistake.. i Changed feeds to update now.. I want live updates to get on my desktop as they come alike those questions ask here –  Amit Rane Aug 11 '12 at 9:46
add comment

There is no way to do this with standard gnome. The wallpaper is a solid image and isn't doing anything special.

If you would like to see the feature, you can add your voice to the existing bug. But the developers for gnome have said that they think the desktop web page is a really bad idea and that really what's needed is better tools to get you to your email on the desktop.

share|improve this answer
1  
Where's the existing bug? –  Erigami Feb 13 '11 at 5:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.