I am really annoyed with the time that is required and the number of clicks that it takes to change the gnome icon theme. So here’s a small script that I wrote to quickly check out all the icon themes that I have in my ~/.icons folder.
[[ ”$1” == ”” ]] && time=5 || time=$1
[[ ”$2” == ”” ]] && (
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/interface/icon_theme ”$i”
) || gconftool-2 –type string -s /desktop/gnome/interface/icon_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 icons 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.
<span style="text-decoration: underline;">**This can also be used as a script running in the background to change the icons every specified time and thus making your friends dazzled.**
- 2010/05/07 bash script to periodically change the cursor theme.
- 2010/03/24 bash – change theme for gtk in gnome and take screenshot from script.
- 2010/04/29 Spruce up your firefox with lightweight themes – Personas
- 2010/04/11 Bugzilla Automation with perl — add, update or query any bug in Bugzilla using perl and www series modules for perl.
- 2010/02/10 bash script with sql to get the number of records from multiple tables.