Guest User

Untitled

a guest
Oct 19th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.97 KB | None | 0 0
  1. ###############################################
  2. #     Gentoo Cursor reactivation Script       #
  3. # (when using custom cursor, compiz + gnome)  #
  4. #                                             #
  5. #       Usage: 1. select new Theme            #
  6. #              2. run this script             #
  7. #                                             #
  8. #               2010 by ZappeL                #
  9. ###############################################
  10.  
  11. #!/bin/bash
  12. GCNF=~/.gconf/desktop/gnome/peripherals/mouse/%gconf.xml
  13.  
  14. if [ -r $GCNF ]; then
  15.         THM=$(sed 's!>! !g;s!<! !g;5,5 !d' $GCNF | awk '{printf($2)}')
  16.         mkdir -p ~/.icons/default/
  17.         THF=~/.icons/default/index.theme
  18.         if [ ! -r $THF ]; then
  19.                 touch $THF
  20.         fi
  21.         echo -e "[Icon Theme]\nInherits = $THM" > $THF
  22.         echo -e "\"$THM\" mouscursor-theme is now set. Please restart compiz! (compiz[-manager] --replace)"
  23. else
  24.         echo -e "No gconf configuration found @ \"$GCNF\"..."
  25. fi
  26.  
  27. exit 0;
Add Comment
Please, Sign In to add comment