bash script to periodically change the cursor theme.

[[ \”$1\” == \”\” ]] && time=5 || time=$1
[[ \”$2\” == \”\” ]] && (
cd ~/.icons
echo \”Select one of the icon themes\”
echo \”When you like some theme just press Ctrl+c\”
for i in *
[[ -d $i/cursors ]] && (
echo \”Now trying …. : $i\”
gconftool-2 –type string -s  /desktop/gnome/peripherals/mouse/cursor_theme \”$i\”
sleep $time
) || gconftool-2 –type string -s  /desktop/gnome/peripherals/mouse/cursor_theme \”$2\”

How does it work/How to use:

just copy paste the script in ~/bin or any other directory and make it executable. Now run the script without any parameter to check out all the themes one after the other, changing your cursor every 5 seconds.

If you want to chnage the timer, just provide the time in seconds as first parameter.

If you want to chnage to specific theme, just provide the theme name as second parameter.

This can also be used as a script running in the background to change the cursor every specified time and thus making your friends dazzled.

Post your free classifieds.

I have put up a free classifieds site here:

top – looks better and is more useful with a rc file…

top is a very useful command to find out who is eating up the CPU or the memory. But sometimes the plain and simple look simply would be boring so how about some fun. Copy the below code to file : ~/.toprc

RCfile for \”top\”
Id:a, Mode_altscr=1, Mode_irixps=0, Delay_time=5.000, Curwin=0
Def    fieldscur=mfcAbdEgHIursOpQTvyzWjKNLX
winflags=32184, sortindx=10, maxtasks=0
summclr=4, msgsclr=5, headclr=5, taskclr=4
Job    fieldscur=ABcefgjlrstuvyzMKNHIWOPQDX
winflags=62777, sortindx=0, maxtasks=0
summclr=6, msgsclr=6, headclr=7, taskclr=6
Mem    fieldscur=ANOPQRSTUVbcdefgjlmyzWHIKX
winflags=62777, sortindx=13, maxtasks=0
summclr=5, msgsclr=5, headclr=4, taskclr=5
Usr    fieldscur=ABDECGfhijlopqrstuvyzMKNWX
winflags=62777, sortindx=4, maxtasks=0
summclr=3, msgsclr=3, headclr=2, taskclr=3

See the changes in the top window.

You can learn about these in the man page for top. But you actually don\’t need to :).

If you want to make changes, simply press \”Z\” or \”h\” for help.

Once you press \’Z\’ you will be able to make changes from within the top command and then you can write the toprc with your changes with \’w\’. Simple 🙂