-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I know there are issues with the cursor themes, thus XFree currently
ships with the old cursors, but I am considering putting together a
package of some of the cursor themes available on kde-look.org (may have
to go to PLF since some have been ripped from other themes).
Anyway, one issue is I don't think normal users should need to hack
~/.icons/default/index.theme to choose an icon theme.
So, I hacked up a short bash script, but I would like some testers.
Requires gtkdialogs. Should be able to choose any cursor theme in
/usr/share/icons, and may also work for themes the user has in ~/.icons.
Patches also welcome, or someone can rewrite with previews etc ...
Buchan
- --
|--------------Another happy Mandrake Club member--------------|
Buchan Milne Mechanical Engineer, Network Manager
Cellphone * Work +27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE+bMk2rJK6UGDSBKcRAtyTAJ4/uknb9uu7gOuPdKYOBTsowLKRjQCeO5p+
oSZoVIp1H5Hv+7jyTJwvhz0=
=FLGl
-----END PGP SIGNATURE-----
#!/bin/bash
ICONS=/usr/share/icons
USERICONS=~/.icons
INDEXFILE=default/index.theme
c=(`ls $ICONS/*/cursors $USERICONS/*/cursors -d 2>/dev/null|cut -f5 -d'/'|grep -v
default`)
BUTTONS=`for i in $(seq 0 "$[${#c[*]}-2]");do echo -n "${c[i]}:$i,";done``echo -n
"${c[$[${#c[*]}-1]]}:$[${#c[*]}-1]"`
MESSAGE="Choose a cursor. For your changes to take effect you will have to log out and
back in."
gmessage -buttons $BUTTONS $MESSAGE
THEME=${c[$?]}
# Root sets the global cursor
if [ `id -u` -eq 0 ];then
INDEX=$ICONS/$INDEXFILE
else
INDEX=$USERICONS/$INDEXFILE
fi
grep -q "\[Icon Theme\]" $INDEX 2>/dev/null
if [ $? ]
then
cp -f $INDEX $INDEX.backup 2>/dev/null
cat $INDEX.backup |sed -e "s/^Inherits=.*$/Inherits=$THEME/g" >$INDEX
else
echo "[Icon Theme]" >> $INDEX
echo "Inherits=$THEME" >> $INDEX
fi