Advertisement
Guest User

Untitled

a guest
Jul 15th, 2014
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.45 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # conky-colors #
  4.  
  5.  
  6. home="/home/${SUDO_USER:-$USER}"
  7.  
  8. cd "$home" || exit
  9.  
  10. color_input="$(zenity --color-selection --color="#cccccc" --show-palette)"
  11. if [[ $? == 0 ]]
  12. then
  13.     color="${color_input:1:2}${color_input:5:2}${color_input:9:2}"
  14. else
  15.     color="ccccccr"
  16. fi
  17.  
  18. find . -type f -name *conkyrc -exec \
  19.     sed -i \
  20.     -e "s|default_color.*|default_color $color|g" \
  21.     -e "s|default_shade_color.*|default_shade_color $color|g" {} +
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement