You are not logged in.

#1 2005-08-04 02:41:31

FJ
Member
From: Ontario, Canada
Registered: 2005-03-17
Posts: 75
Website

A small wallpaper changing script & unsort

Hey!

I wrote a little bash script that handles some aspects of changing wallpapers in KDE (it makes a dcop call, hence has kdelibs as a dependency).  It's called wpchanger and has a special dependency besides bash and kdelibs (and now imagemagick): unsort.   What unsort does is randomizes a list in a text file.  That's it.

My point in going on about unsort is that I'd love it if this was moved to Community so that pacman could find it (though I love aurbuild).  So I hope people will vote for this small program in the AUR.  Ok I'm off my soap box now.

EDIT:
Version 0.9.1 is finished.  My lack of knowledge in programming in general is showing heavily now, but the damned thing probably works if you're using KDE.

Current Dependencies
bash (this script is getting a little ridiculous now)
kdelibs (for dcop calls; the kdialogs use kdebase)
unsort (for randomizing the wallpapers)
imagemagick (for the great 'identify', which allows me to determine if a file is actually an image or not, as well as give me the dimensions so I can determine if I should tile it)

(Source; AUR Link)

Offline

#2 2005-08-04 04:19:28

FJ
Member
From: Ontario, Canada
Registered: 2005-03-17
Posts: 75
Website

Re: A small wallpaper changing script & unsort

Version 0.2 has been released and includes a new option, setting the display mode to apply to the wallpaper list.

wpchanger-0.2-1.pkg.tar.gz

Offline

#3 2005-08-04 20:36:31

Shofs
Member
From: Central Illinois
Registered: 2004-12-15
Posts: 184

Re: A small wallpaper changing script & unsort

I thought KDE had this feature built-in. I wish this was xfce orriented.

Any contribution to the community is appreciated by me though.

Offline

#4 2005-08-04 20:54:10

FJ
Member
From: Ontario, Canada
Registered: 2005-03-17
Posts: 75
Website

Re: A small wallpaper changing script & unsort

Indeed KDE does have a feature like this built into Control Center.  However, it doesn't do things exactly like I'd prefer, especially in terms of keeping a history of randomly chosen backgrounds and some other features.

This script can be easily modified to work in XFCE, just as long as there is a similar type of dcop call.  I'm not familiar with how that works though.  The only part that is KDE-oriented is the actual dcop call.  I'll look into what XFCE uses.

Offline

#5 2005-08-04 22:11:05

jackmetal
Member
From: US
Registered: 2005-06-13
Posts: 164

Re: A small wallpaper changing script & unsort

There's a number of ways to do it...   fbsetbg is one that I currently use for fluxbox and a few other WM's.


--

Some of the world's greatest feats were
accomplished by people not smart enough
to know they were impossible.
-- Doug Larson

Offline

#6 2005-08-05 16:41:25

FJ
Member
From: Ontario, Canada
Registered: 2005-03-17
Posts: 75
Website

Re: A small wallpaper changing script & unsort

Hiya; new release (see first message).

Offline

#7 2005-08-06 08:00:20

FJ
Member
From: Ontario, Canada
Registered: 2005-03-17
Posts: 75
Website

Re: A small wallpaper changing script & unsort

PKGBUILD for 0.4:

# Maintainer: FJ <joostef@gmail.com>
# Contributor FJ <joostef@gmail.com>
pkgname=wpchanger
pkgver=0.4
pkgrel=1
pkgdesc="A simple wallpaper manager for KDE."
url="http://openset.org/"
depends=('bash' 'kdelibs' 'unsort')
source=http://openset.org/file_download/$pkgname-$pkgver.tar.gz
md5sums=('b4161bf4b0dd7d12d5bf891b85319749')
build() {
  cd $startdir/src
  mkdir -p $startdir/pkg/usr/bin
  cp wpchanger $startdir/pkg/usr/bin
}

Offline

#8 2005-08-07 04:07:28

FJ
Member
From: Ontario, Canada
Registered: 2005-03-17
Posts: 75
Website

Re: A small wallpaper changing script & unsort

I added wpchanger to the AUR.  Alternatively you can use my private repo.  However, I am not a TU or anything like that.

Offline

#9 2005-08-07 07:40:00

stavrosg
Member
From: Rhodes, Greece
Registered: 2005-05-01
Posts: 330
Website

Re: A small wallpaper changing script & unsort

rmbalfa wrote:

I thought KDE had this feature built-in. I wish this was xfce orriented.

Any contribution to the community is appreciated by me though.

I got this one from the xfce irc channel or mailing list. cant remember anymore.
Just put this as an executable script under ~/Desktop/Autostart/

#!/bin/bash

handle_hup ()
{
          exit 0
  }

  trap "handle_hup" HUP

  while(true)
  do
          sleep 10m
          xfdesktop -reload
  done

Just change the sleep command to your liking and make sure you have some nice wallpapers in your backdrops.list file  wink

Offline

#10 2005-08-09 00:12:14

FJ
Member
From: Ontario, Canada
Registered: 2005-03-17
Posts: 75
Website

Re: A small wallpaper changing script & unsort

0.7 released.  I put in KDE Trash support for delete.

Offline

#11 2006-10-30 07:23:14

FJ
Member
From: Ontario, Canada
Registered: 2005-03-17
Posts: 75
Website

Re: A small wallpaper changing script & unsort

0.9.1 done (see first message).  I'd be happier if someone rewrote this in a proper language.  This is getting a bit UGLY.

Offline

#12 2006-10-30 21:28:10

yankees26
Member
From: Connecticut, USA
Registered: 2006-09-29
Posts: 190

Re: A small wallpaper changing script & unsort

By a proper language, I assume you mean something other than bash.  If thats the case you might want to look into xterminus' wallpaper changer written in perl (with some other features, like making urvxt have a blurry background with the current background, some conky stuff and some gtk and openbox stuff, but any of these can be disabled in the config file).  http://cmauch.googlecode.com/svn/wallpaper

Offline

Board footer

Powered by FluxBB