Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FVWM and background changer
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
nordicskiah
n00b
n00b


Joined: 07 Mar 2005
Posts: 73
Location: Bethel or Falmouth, Maine

PostPosted: Fri Apr 01, 2005 6:34 pm    Post subject: FVWM and background changer Reply with quote

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
View user's profile Send private message
anxt
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 254
Location: Frozen Tundra, Canada

PostPosted: Fri Apr 01, 2005 7:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Darkael
Veteran
Veteran


Joined: 10 Aug 2004
Posts: 1321
Location: France

PostPosted: Fri Apr 01, 2005 7:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum