zenity/scripts/color.sh

12 lines
204 B
Bash
Raw Normal View History

2022-03-24 12:37:21 -04:00
#!/bin/sh
COLOR=`zenity --color-selection --show-palette`
case $? in
0)
echo "You selected $COLOR.";;
1)
echo "No color selected.";;
-1)
echo "An unexpected error has occurred.";;
esac