aqui escrevi alguns scripts para fazer configurações aleatórias usando o gconf.
ChangeGTKTheme
#!/bin/bash
if [ "$1" == "random" ]; then
files=(~/.themes/*)
base=$(basename "${files[RANDOM % ${#files[@]}]}")
gconftool-2 --type=string -s /desktop/gnome/interface/gtk_theme $base
else
if [ "$1" == "" ]; then
echo "Usage: $0 GTK_theme_name"
echo "or $0 random / for a random pick"
else
#GTK theme
gconftool-2 --type=string -s /desktop/gnome/interface/gtk_theme $1
fi
fi
ChangeBackground
#!/bin/bash
if [ "$1" == "random" ]; then
files=(~/.backgrounds/*)
gconftool-2 -t str --set /desktop/gnome/background/picture_filename "${files[RANDOM % ${#files[@]}]}"
else
if [ "$1" == "" ]; then
echo "Usage: $0 path/to/background"
echo "or $0 random / for a random pick"
else
#Wallpaper
gconftool-2 -t str --set /desktop/gnome/background/picture_filename $1
fi
fi
ChangeIcons
#!/bin/bash
if [ "$1" == "random" ]; then
files=(~/.icons/*)
base=$(basename "${files[RANDOM % ${#files[@]}]}")
gconftool-2 --type=string -s /desktop/gnome/interface/icon_theme $base
else
if [ "$1" == "" ]; then
echo "Usage: $0 icon_theme_name"
echo "or $0 random / for a random pick"
else
#Icons
gconftool-2 --type=string -s /desktop/gnome/interface/icon_theme $1
fi
fi
ChangeMetacityThemes
#!/bin/bash
if [ "$1" == "random" ]; then
files=(~/.themes/*)
base=$(basename "${files[RANDOM % ${#files[@]}]}")
gconftool-2 --type=string -s /apps/metacity/general/theme $base
else
if [ "$1" == "" ]; then
echo "Usage: $0 metacity_theme_name"
echo "or $0 random / for a random pick"
else
#Metacity
gconftool-2 --type=string -s /apps/metacity/general/theme $1
fi
fi
Espero que isso ajude você.