View previous topic :: View next topic |
Author |
Message |
nordicskiah n00b
Joined: 07 Mar 2005 Posts: 73 Location: Bethel or Falmouth, Maine
|
Posted: Fri Apr 01, 2005 6:34 pm Post subject: FVWM and background changer |
|
|
anyone know a script to change the backround in fvwm every couple hours or so?
Perhaps random? Perhaps to anyfile in a set directory?
i could do it in torsmo... but I'd like torsmo to update every couple seconds rather than hours...
let me know,
peace, nordic _________________ listen to John Butler Trio from Australia |
|
Back to top |
|
|
anxt Apprentice
Joined: 25 Feb 2003 Posts: 254 Location: Frozen Tundra, Canada
|
Posted: Fri Apr 01, 2005 7:19 pm Post subject: |
|
|
i wrote something and set it as asuer cronjob
Code: | #!/bin/sh
cd /home/anxt/wallpaper
export DISPLAY=:0.0
ls *.jpg *.png *.gif > file.list
wc -l file.list | cut -d' ' -f 1 > file.num
echo "<?php echo rand(0,`cat file.num`); ?>" | php > pic.num
head -n `cat pic.num` file.list | tail -n 1 > pic.name
qiv -x -t `cat pic.name` |
sorry it is ugly and not very elegant, but it works.
you need qiv && php (and crontab if you want to cron it)
emerge qiv php |
|
Back to top |
|
|
Darkael Veteran
Joined: 10 Aug 2004 Posts: 1321 Location: France
|
Posted: Fri Apr 01, 2005 7:54 pm Post subject: |
|
|
nordicskiah:
You can try to set a cron task to do that, as anxt said.
There is also a python script on the french forum, which can set random wallpapers and can handle xinerama screens too:
https://forums.gentoo.org/viewtopic-t-288167-highlight-wallpaper.html
The thread is in french, but the help included in the script is in english and if you have a problem I'm sure kwenspc will be glad to help you if you PM him. |
|
Back to top |
|
|
|