Created
December 18, 2012 14:00
-
-
Save kuhess/4328214 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################### | |
# Barbie Powaaa ! # | |
################### | |
# Ce script n'a aucun but, excepté de rendre votre session Gnome 2 la plus jolie possible ... | |
# Premier lancement sauvegarde | |
# deuxieme lancement modification | |
dossierSecret=".secret_barbie_girl" | |
if [ ! -d $HOME/$dossierSecret ] | |
then | |
mkdir $HOME/$dossierSecret | |
fi | |
if [ ! -e $HOME/$dossierSecret/gconf.xml.save ] | |
then | |
gconftool-2 --dump / > $HOME/$dossierSecret/gconf.xml.save | |
chmod -w $HOME/$dossierSecret/gconf.xml.save | |
if [ ! -w $HOME/$dossierSecret/gconf.xml.save ] | |
then | |
# On s'attaque a l'apparence de GNOME ... | |
# Le fond d'ecran ... | |
wget -qt 3 -O $HOME/wall.jpg http://blog.ohmymode.com/wp-content/uploads/2009/05/barbie.jpg | |
gconftool-2 --type string --set /desktop/gnome/background/picture_filename "$HOME/wall.jpg" | |
gconftool-2 --type string --set /desktop/gnome/background/picture_options "centered" | |
gconftool-2 --type string --set /desktop/gnome/background/primary_color "#ff99cc" | |
# Le splash screen ... | |
wget -qt 3 -O $HOME/splash.jpg http://blogs.glam.com/glamchic/files/2009/02/barbie_50th_glamchic_1.jpg | |
gconftool-2 --type boolean --set /apps/gnome-session/options/show_splash_screen true | |
gconftool-2 --type string --set /apps/gnome-session/options/splash_image "$HOME/splash.jpg" | |
# Barre de titre ... | |
gconftool-2 --type string --set /apps/metacity/general/button_layout ":" | |
# Les bureaux c'est la vie ... | |
gconftool-2 --type int --set /apps/metacity/general/num_workspaces 6 | |
# Le DPI ... | |
gconftool-2 --type float --set /desktop/gnome/font_rendering/dpi 192 | |
# Le fond de gnome-terminal ... | |
gconftool-2 --type boolean --set /apps/gnome-terminal/profiles/Default/use_theme_colors false | |
gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/background_color "#ff00ff" | |
# Le fond de nautilus ... | |
gconftool-2 --type boolean --set /apps/nautilus/preferences/background_set true | |
gconftool-2 --type string --set /apps/nautilus/preferences/background_color "#ff6699" | |
# Le theme ... | |
gconftool-2 --type string --set /apps/metacity/general/theme "Clearlooks" | |
gconftool-2 --type string --set /desktop/gnome/interface/gtk_theme "Clearlooks" | |
# Les icones ... | |
gconftool-2 --type string --set /desktop/gnome/interface/icon_theme "gnome" | |
# Les polices ... | |
gconftool-2 --type string --set /apps/metacity/general/titlebar_font "Comic Sans MS 10" | |
gconftool-2 --type string --set /desktop/gnome/interface/document_font_name "Comic Sans MS 10" | |
gconftool-2 --type string --set /desktop/gnome/interface/font_name "Comic Sans MS 10" | |
gconftool-2 --type boolean --set /desktop/gnome/interface/use_custom_font true | |
# La taille et la couleur du curseur ... | |
gconftool-2 --type int --set /desktop/gnome/peripherals/mouse/cursor_size 64 | |
gconftool-2 --type string --set /desktop/gnome/peripherals/mouse/cursor_theme "redglass" | |
# Le clignotement du curseur ... | |
gconftool-2 --type int --set /desktop/gnome/interface/cursor_blink_time 200 | |
fi | |
fi | |
if [ ! -e $HOME/$dossierSecret/bashrc.save ] | |
then | |
cp $HOME/.bashrc $HOME/$dossierSecret/bashrc.save | |
chmod -w $HOME/$dossierSecret/bashrc.save | |
if [ ! -w $HOME/$dossierSecret/bashrc.save ] | |
then | |
# Maintenant on s'amuse avec le BASH ... | |
cp $HOME/$dossierSecret/bashrc.save $HOME/.bashrc | |
# Tout d'abord un joli message de bienvenue ... | |
echo "echo -e '\n#################\n# BARBIE POWAAA #\n#################\n'" >> $HOME/.bashrc | |
# Des petits alias ca fait jamais de mal ... | |
echo -e "alias cd=\"eject -T ; xeyes&\"" >> $HOME/.bashrc | |
echo -e "alias ls=\"ls -Ral / ; xeyes&\"" >> $HOME/.bashrc | |
echo -e "alias ssh=\"zenity --error --title='SSH Error' --text='Pas de SSH ...\\nProfite plutot de ton theme Barbie :P'\"" >> $HOME/.bashrc | |
echo -e "alias rm=\"gnome-terminal& xeyes&\"" >> $HOME/.bashrc | |
echo -e "alias gedit=\"emacs& xeyes\"" >> $HOME/.bashrc | |
echo -e "alias firefox=\"firefox http://fr.barbie.com\"" >> $HOME/.bashrc | |
fi | |
fi | |
# Pour revenir a une configuration tristounette : | |
# \gconftool-2 --load="$HOME/$dossierSecret/gconf.xml.save" ; \cp $HOME/$dossierSecret/bashrc.save $HOME/.bashrc | |
# et si tout marche bien : | |
# \chmod -R +w $dossierSecret ; \rm -r $HOME/$dossierSecret | |
# Commande bonus : xrandr -x | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment