Posts: 200
lagopus
Joined: 15 Oct 2008
#1
Hello all

After reading your posts about wallpaper.sh in M11 and nitrogen and feh, I found it:


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://forum.ubuntu-fr.org/viewtopic.php?id=406726"
linktext was:"http://forum.ubuntu-fr.org/viewtopic.php?id=406726"
====================================

Le 07/07/2010, à 15:22
feh-gtk (a simple GUI to choose your wallpaper)
Depuis quelques temps, plus de 6 mois, j'utilisais nitrogen…
Lassé… et comme il n'existe qu'une seule autre alternative, à ma connaissance, pour les"environnements de bureau alternatifs", je me suis décidé à coder, en Python, une petite interface pour feh, dans l'idée d'imiter nitrogen, qui m'a d'ailleurs servi de source d'inspiration. Et c'est ainsi que je suis arrivé à çà :
Translation (google assisted):
Recently, for more than 6 months, I was using nitrogen ...
Tired ... and as there is only one alternative, to my knowledge, for the"alternate desktop environments", I decided to code in Python a small interface for feh, with the idea of imitating nitrogen, which also served as a source of inspiration. And so I came to this...
I dowloaded the code from:

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://devblog.homeunix.me/share/debian/rss.xml?feh-gtk"
linktext was:"http://devblog.homeunix.me/share/debian/rss.xml?feh-gtk"
====================================


...stripped down some stuff, merged some files, added a file selection dialog to browse directories (starts by default in /usr/share/wallpaper)

Needs some polishing, and I have to add the shell commands (from wallpaper.sh) to store the settings for rox and/or icewm (time to go to sleep now)
It takes a few seconds the first time to display the icons, then the thumbs are cached in a user hidden directory

Tested in M8.5

Merry Chrismas to you all
Posts: 1,062
Dave
Joined: 20 Jan 2010
#2
hi Yves,
tried the script but it shows a output of invalid syntax, tried in 8.5

Code: Select all

./wallpaper.py:93: Warning: 'as' will become a reserved keyword in Python 2.6
  File"./wallpaper.py", line 93
    except Exception as e:
                      ^
SyntaxError: invalid syntax
edit

solved that problem old package, but now when I try to navigate to ~/Wallpaper by clicking the home button it will not open the directory

I have also been working on something to heres what I got mabey a help to you


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://daveserver.dyndns-web.com/antiX/wallpaper2.sh"
linktext was:"new wallpaper"
====================================


needs to be placed in /usr/bin or /usr/local/bin
Last edited by Dave on 23 Jul 2011, 21:14, edited 1 time in total.
Posts: 200
lagopus
Joined: 15 Oct 2008
#3
Hi Dave

My python version is 2.6.6

Code: Select all

yves@antiX:~/Projects/Wallpaper$ python --version
Python 2.6.6
M8.5 upgraded to debian squeeze

Checked in M11:
/usr/bin/python is a symbolic link to python2.6

Can you check your version ?
Posts: 1,062
Dave
Joined: 20 Jan 2010
#4
I too am running python 2.6.6

EDIT
made some changes to my version of wallpaper script as suggested by OU812 and Erie Fisher


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://daveserver.dyndns-web.com/antiX/wallpaper2.sh"
linktext was:"New wallpaper"
====================================