unixwz0r

compton-setup

Dec 30th, 2014
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. #!/bin/bash
  2. #-------------------------------------------------------------------------------
  3. #Tux Hat Linux Installer Script
  4. #Developer: Gary Perreault
  5. #-------------------------------------------------------------------------------
  6.  
  7. #Global Settings
  8. COMPTON="yaourt -S --noconfirm compton"
  9.  
  10. #Varibles to Ensure Configured Usually set to Not Configured until
  11. #task is done.
  12.  
  13. TASK1="[ ] Not Set"
  14. TASK2="[ ] Not Set"
  15.  
  16. # External Function Files that is required
  17. if [[ -f `pwd`/gfuncs.sh ]]; then
  18. source gfuncs.sh
  19. else
  20. echo "Error missing file: gfuncs.sh - Required for installer"
  21. exit 1
  22. fi
  23.  
  24. if [[ -f `pwd`/diskfuncs.sh ]]; then
  25. source diskfuncs.sh
  26. else
  27. echo "Error missing file: diskfuncs.sh - Required for installer"
  28. exit 1
  29. fi
  30.  
  31. prepmenu() {
  32. print_title5
  33. echo ""
  34. echo "${Bold}${White}${Underline}Tux Hat Linux Compton Setup${Reset}"
  35. echo ""
  36. echo "${Bold}${White} 1. Install Compton Composite $TASK1"
  37. echo "${Bold}${White} Q. Quit "
  38. print_askopt
  39. read mnuopt
  40.  
  41. case $mnuopt in
  42. 1)
  43. $COMPTON
  44. TASK1="${Bold}${White}[${Bold}${Green}X${Bold}${White}] is Set"
  45. pause_function
  46. prepmenu
  47. ;;
  48. q)
  49. echo ""
  50. echo "${Purple}Now ${Cyan}the ${Blue}Compton ${White}Composite ${Yellow}is ${Green}Ready!${Reset}"
  51. echo ""
  52. esac
  53.  
  54. }
  55. prepmenu
Advertisement
Add Comment
Please, Sign In to add comment