Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # conky-colors #
- home="/home/${SUDO_USER:-$USER}"
- cd "$home" || exit
- color_input="$(zenity --color-selection --color="#cccccc" --show-palette)"
- if [[ $? == 0 ]]
- then
- color="${color_input:1:2}${color_input:5:2}${color_input:9:2}"
- else
- color="ccccccr"
- fi
- find . -type f -name *conkyrc -exec \
- sed -i \
- -e "s|default_color.*|default_color $color|g" \
- -e "s|default_shade_color.*|default_shade_color $color|g" {} +
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement