Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###############################################
- # Gentoo Cursor reactivation Script #
- # (when using custom cursor, compiz + gnome) #
- # #
- # Usage: 1. select new Theme #
- # 2. run this script #
- # #
- # 2010 by ZappeL #
- ###############################################
- #!/bin/bash
- GCNF=~/.gconf/desktop/gnome/peripherals/mouse/%gconf.xml
- if [ -r $GCNF ]; then
- THM=$(sed 's!>! !g;s!<! !g;5,5 !d' $GCNF | awk '{printf($2)}')
- mkdir -p ~/.icons/default/
- THF=~/.icons/default/index.theme
- if [ ! -r $THF ]; then
- touch $THF
- fi
- echo -e "[Icon Theme]\nInherits = $THM" > $THF
- echo -e "\"$THM\" mouscursor-theme is now set. Please restart compiz! (compiz[-manager] --replace)"
- else
- echo -e "No gconf configuration found @ \"$GCNF\"..."
- fi
- exit 0;
Add Comment
Please, Sign In to add comment