#!/bin/bash

# <bitbar.title>Guyn</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Sil</bitbar.author>
# <bitbar.author.github>silvandiepen</bitbar.author.github>
# <bitbar.desc>Show all Guyn Colors</bitbar.desc>
# <bitbar.image>http://i.imgur.com/YE0P2ww.png</bitbar.image>

if [[ "$1" = "copy" ]]; then
  echo "$2" | tr -d '\n' | pbcopy
  osascript -e "display notification \"Copied $2 to Clipboard\" with title \"BitBar colors\"" &> /dev/null
  exit
fi

# List 141 guyn colors.
echo "#"
echo "---"
echo "Guyn |color=white"
echo "--Aliceblue #f0f8ff | color=#f0f8ff bash='$0' param1=copy param2='#f0f8ff' refresh=false terminal=false"
echo "--Antiquewhite #faebd7 | color=#faebd7 bash='$0' param1=copy param2='#faebd7' refresh=false terminal=false"
echo "--Aqua #00ffff | color=#00ffff bash='$0' param1=copy param2='#00ffff' refresh=false terminal=false"
echo "--Aquamarine #7fffd4 | color=#7fffd4 bash='$0' param1=copy param2='#7fffd4' refresh=false terminal=false"
echo "--Azure #f0ffff | color=#f0ffff bash='$0' param1=copy param2='#f0ffff' refresh=false terminal=false"
echo "--Beige #f5f5dc | color=#f5f5dc bash='$0' param1=copy param2='#f5f5dc' refresh=false terminal=false"
echo "--Bisque #ffe4c4 | color=#ffe4c4 bash='$0' param1=copy param2='#ffe4c4' refresh=false terminal=false"
echo "--Black #000000 | color=#000000 bash='$0' param1=copy param2='#000000' refresh=false terminal=false"
echo "--Blanchedalmond #ffebcd | color=#ffebcd bash='$0' param1=copy param2='#ffebcd' refresh=false terminal=false"
echo "--Blue #0000ff | color=#0000ff bash='$0' param1=copy param2='#0000ff' refresh=false terminal=false"
echo "--Blueviolet #8a2be2 | color=#8a2be2 bash='$0' param1=copy param2='#8a2be2' refresh=false terminal=false"
echo "--Brown #a52a2a | color=#a52a2a bash='$0' param1=copy param2='#a52a2a' refresh=false terminal=false"
echo "--Burlywood #deb887 | color=#deb887 bash='$0' param1=copy param2='#deb887' refresh=false terminal=false"
echo "--Cadetblue #5f9ea0 | color=#5f9ea0 bash='$0' param1=copy param2='#5f9ea0' refresh=false terminal=false"
echo "--Chartreuse #7fff00 | color=#7fff00 bash='$0' param1=copy param2='#7fff00' refresh=false terminal=false"
echo "--Chocolate #d2691e | color=#d2691e bash='$0' param1=copy param2='#d2691e' refresh=false terminal=false"
echo "--Coral #ff7f50 | color=#ff7f50 bash='$0' param1=copy param2='#ff7f50' refresh=false terminal=false"
echo "--Cornflowerblue #6495ed | color=#6495ed bash='$0' param1=copy param2='#6495ed' refresh=false terminal=false"
echo "--Cornsilk #fff8dc | color=#fff8dc bash='$0' param1=copy param2='#fff8dc' refresh=false terminal=false"
echo "--Crimson #dc143c | color=#dc143c bash='$0' param1=copy param2='#dc143c' refresh=false terminal=false"
echo "--Cyan #00ffff | color=#00ffff bash='$0' param1=copy param2='#00ffff' refresh=false terminal=false"
echo "--Darkblue #00008b | color=#00008b bash='$0' param1=copy param2='#00008b' refresh=false terminal=false"
echo "--Darkcyan #008b8b | color=#008b8b bash='$0' param1=copy param2='#008b8b' refresh=false terminal=false"
echo "--Darkgoldenrod #b8860b | color=#b8860b bash='$0' param1=copy param2='#b8860b' refresh=false terminal=false"
echo "--Darkgray #a9a9a9 | color=#a9a9a9 bash='$0' param1=copy param2='#a9a9a9' refresh=false terminal=false"
echo "--Darkgreen #006400 | color=#006400 bash='$0' param1=copy param2='#006400' refresh=false terminal=false"
echo "--Darkkhaki #bdb76b | color=#bdb76b bash='$0' param1=copy param2='#bdb76b' refresh=false terminal=false"
echo "--Darkmagenta #8b008b | color=#8b008b bash='$0' param1=copy param2='#8b008b' refresh=false terminal=false"
echo "--Darkolivegreen #556b2f | color=#556b2f bash='$0' param1=copy param2='#556b2f' refresh=false terminal=false"
echo "--Darkorange #ff8c00 | color=#ff8c00 bash='$0' param1=copy param2='#ff8c00' refresh=false terminal=false"
echo "--Darkorchid #9932cc | color=#9932cc bash='$0' param1=copy param2='#9932cc' refresh=false terminal=false"
echo "--Darkred #8b0000 | color=#8b0000 bash='$0' param1=copy param2='#8b0000' refresh=false terminal=false"
echo "--Darksalmon #e9967a | color=#e9967a bash='$0' param1=copy param2='#e9967a' refresh=false terminal=false"
echo "--Darkseagreen #8fbc8f | color=#8fbc8f bash='$0' param1=copy param2='#8fbc8f' refresh=false terminal=false"
echo "--Darkslateblue #483d8b | color=#483d8b bash='$0' param1=copy param2='#483d8b' refresh=false terminal=false"
echo "--Darkslategray #2f4f4f | color=#2f4f4f bash='$0' param1=copy param2='#2f4f4f' refresh=false terminal=false"
echo "--Darkturquoise #00ced1 | color=#00ced1 bash='$0' param1=copy param2='#00ced1' refresh=false terminal=false"
echo "--Darkviolet #9400d3 | color=#9400d3 bash='$0' param1=copy param2='#9400d3' refresh=false terminal=false"
echo "--Deeppink #ff1493 | color=#ff1493 bash='$0' param1=copy param2='#ff1493' refresh=false terminal=false"
echo "--Deepskyblue #00bfff | color=#00bfff bash='$0' param1=copy param2='#00bfff' refresh=false terminal=false"
echo "--Dimgray #696969 | color=#696969 bash='$0' param1=copy param2='#696969' refresh=false terminal=false"
echo "--Dodgerblue #1e90ff | color=#1e90ff bash='$0' param1=copy param2='#1e90ff' refresh=false terminal=false"
echo "--Firebrick #b22222 | color=#b22222 bash='$0' param1=copy param2='#b22222' refresh=false terminal=false"
echo "--Floralwhite #fffaf0 | color=#fffaf0 bash='$0' param1=copy param2='#fffaf0' refresh=false terminal=false"
echo "--Forestgreen #228b22 | color=#228b22 bash='$0' param1=copy param2='#228b22' refresh=false terminal=false"
echo "--Fuchsia #ff00ff | color=#ff00ff bash='$0' param1=copy param2='#ff00ff' refresh=false terminal=false"
echo "--Gainsboro #dcdcdc | color=#dcdcdc bash='$0' param1=copy param2='#dcdcdc' refresh=false terminal=false"
echo "--Ghostwhite #f8f8ff | color=#f8f8ff bash='$0' param1=copy param2='#f8f8ff' refresh=false terminal=false"
echo "--Gold #ffd700 | color=#ffd700 bash='$0' param1=copy param2='#ffd700' refresh=false terminal=false"
echo "--Goldenrod #daa520 | color=#daa520 bash='$0' param1=copy param2='#daa520' refresh=false terminal=false"
echo "--Gray #808080 | color=#808080 bash='$0' param1=copy param2='#808080' refresh=false terminal=false"
echo "--Green #008000 | color=#008000 bash='$0' param1=copy param2='#008000' refresh=false terminal=false"
echo "--Greenyellow #adff2f | color=#adff2f bash='$0' param1=copy param2='#adff2f' refresh=false terminal=false"
echo "--Honeydew #f0fff0 | color=#f0fff0 bash='$0' param1=copy param2='#f0fff0' refresh=false terminal=false"
echo "--Hotpink #ff69b4 | color=#ff69b4 bash='$0' param1=copy param2='#ff69b4' refresh=false terminal=false"
echo "--Indianred #cd5c5c | color=#cd5c5c bash='$0' param1=copy param2='#cd5c5c' refresh=false terminal=false"
echo "--Indigo #4b0082 | color=#4b0082 bash='$0' param1=copy param2='#4b0082' refresh=false terminal=false"
echo "--Ivory #fffff0 | color=#fffff0 bash='$0' param1=copy param2='#fffff0' refresh=false terminal=false"
echo "--Khaki #f0e68c | color=#f0e68c bash='$0' param1=copy param2='#f0e68c' refresh=false terminal=false"
echo "--Lavender #e6e6fa | color=#e6e6fa bash='$0' param1=copy param2='#e6e6fa' refresh=false terminal=false"
echo "--Lavenderblush #fff0f5 | color=#fff0f5 bash='$0' param1=copy param2='#fff0f5' refresh=false terminal=false"
echo "--Lawngreen #7cfc00 | color=#7cfc00 bash='$0' param1=copy param2='#7cfc00' refresh=false terminal=false"
echo "--Lemonchiffon #fffacd | color=#fffacd bash='$0' param1=copy param2='#fffacd' refresh=false terminal=false"
echo "--Lightblue #add8e6 | color=#add8e6 bash='$0' param1=copy param2='#add8e6' refresh=false terminal=false"
echo "--Lightcoral #f08080 | color=#f08080 bash='$0' param1=copy param2='#f08080' refresh=false terminal=false"
echo "--Lightcyan #e0ffff | color=#e0ffff bash='$0' param1=copy param2='#e0ffff' refresh=false terminal=false"
echo "--Lightgoldenrodyellow #fafad2 | color=#fafad2 bash='$0' param1=copy param2='#fafad2' refresh=false terminal=false"
echo "--Lightgrey #d3d3d3 | color=#d3d3d3 bash='$0' param1=copy param2='#d3d3d3' refresh=false terminal=false"
echo "--Lightgreen #90ee90 | color=#90ee90 bash='$0' param1=copy param2='#90ee90' refresh=false terminal=false"
echo "--Lightpink #ffb6c1 | color=#ffb6c1 bash='$0' param1=copy param2='#ffb6c1' refresh=false terminal=false"
echo "--Lightsalmon #ffa07a | color=#ffa07a bash='$0' param1=copy param2='#ffa07a' refresh=false terminal=false"
echo "--Lightseagreen #20b2aa | color=#20b2aa bash='$0' param1=copy param2='#20b2aa' refresh=false terminal=false"
echo "--Lightskyblue #87cefa | color=#87cefa bash='$0' param1=copy param2='#87cefa' refresh=false terminal=false"
echo "--Lightslategray #778899 | color=#778899 bash='$0' param1=copy param2='#778899' refresh=false terminal=false"
echo "--Lightsteelblue #b0c4de | color=#b0c4de bash='$0' param1=copy param2='#b0c4de' refresh=false terminal=false"
echo "--Lightyellow #ffffe0 | color=#ffffe0 bash='$0' param1=copy param2='#ffffe0' refresh=false terminal=false"
echo "--Lime #00ff00 | color=#00ff00 bash='$0' param1=copy param2='#00ff00' refresh=false terminal=false"
echo "--Limegreen #32cd32 | color=#32cd32 bash='$0' param1=copy param2='#32cd32' refresh=false terminal=false"
echo "--Linen #faf0e6 | color=#faf0e6 bash='$0' param1=copy param2='#faf0e6' refresh=false terminal=false"
echo "--Magenta #ff00ff | color=#ff00ff bash='$0' param1=copy param2='#ff00ff' refresh=false terminal=false"
echo "--Maroon #800000 | color=#800000 bash='$0' param1=copy param2='#800000' refresh=false terminal=false"
echo "--Mediumaquamarine #66cdaa | color=#66cdaa bash='$0' param1=copy param2='#66cdaa' refresh=false terminal=false"
echo "--Mediumblue #0000cd | color=#0000cd bash='$0' param1=copy param2='#0000cd' refresh=false terminal=false"
echo "--Mediumorchid #ba55d3 | color=#ba55d3 bash='$0' param1=copy param2='#ba55d3' refresh=false terminal=false"
echo "--Mediumpurple #9370d8 | color=#9370d8 bash='$0' param1=copy param2='#9370d8' refresh=false terminal=false"
echo "--Mediumseagreen #3cb371 | color=#3cb371 bash='$0' param1=copy param2='#3cb371' refresh=false terminal=false"
echo "--Mediumslateblue #7b68ee | color=#7b68ee bash='$0' param1=copy param2='#7b68ee' refresh=false terminal=false"
echo "--Mediumspringgreen #00fa9a | color=#00fa9a bash='$0' param1=copy param2='#00fa9a' refresh=false terminal=false"
echo "--Mediumturquoise #48d1cc | color=#48d1cc bash='$0' param1=copy param2='#48d1cc' refresh=false terminal=false"
echo "--Mediumvioletred #c71585 | color=#c71585 bash='$0' param1=copy param2='#c71585' refresh=false terminal=false"
echo "--Midnightblue #191970 | color=#191970 bash='$0' param1=copy param2='#191970' refresh=false terminal=false"
echo "--Mintcream #f5fffa | color=#f5fffa bash='$0' param1=copy param2='#f5fffa' refresh=false terminal=false"
echo "--Mistyrose #ffe4e1 | color=#ffe4e1 bash='$0' param1=copy param2='#ffe4e1' refresh=false terminal=false"
echo "--Moccasin #ffe4b5 | color=#ffe4b5 bash='$0' param1=copy param2='#ffe4b5' refresh=false terminal=false"
echo "--Navajowhite #ffdead | color=#ffdead bash='$0' param1=copy param2='#ffdead' refresh=false terminal=false"
echo "--Navy #000080 | color=#000080 bash='$0' param1=copy param2='#000080' refresh=false terminal=false"
echo "--Oldlace #fdf5e6 | color=#fdf5e6 bash='$0' param1=copy param2='#fdf5e6' refresh=false terminal=false"
echo "--Olive #808000 | color=#808000 bash='$0' param1=copy param2='#808000' refresh=false terminal=false"
echo "--Olivedrab #6b8e23 | color=#6b8e23 bash='$0' param1=copy param2='#6b8e23' refresh=false terminal=false"
echo "--Orange #ffa500 | color=#ffa500 bash='$0' param1=copy param2='#ffa500' refresh=false terminal=false"
echo "--Orangered #ff4500 | color=#ff4500 bash='$0' param1=copy param2='#ff4500' refresh=false terminal=false"
echo "--Orchid #da70d6 | color=#da70d6 bash='$0' param1=copy param2='#da70d6' refresh=false terminal=false"
echo "--Palegoldenrod #eee8aa | color=#eee8aa bash='$0' param1=copy param2='#eee8aa' refresh=false terminal=false"
echo "--Palegreen #98fb98 | color=#98fb98 bash='$0' param1=copy param2='#98fb98' refresh=false terminal=false"
echo "--Paleturquoise #afeeee | color=#afeeee bash='$0' param1=copy param2='#afeeee' refresh=false terminal=false"
echo "--Palevioletred #d87093 | color=#d87093 bash='$0' param1=copy param2='#d87093' refresh=false terminal=false"
echo "--Papayawhip #ffefd5 | color=#ffefd5 bash='$0' param1=copy param2='#ffefd5' refresh=false terminal=false"
echo "--Peachpuff #ffdab9 | color=#ffdab9 bash='$0' param1=copy param2='#ffdab9' refresh=false terminal=false"
echo "--Peru #cd853f | color=#cd853f bash='$0' param1=copy param2='#cd853f' refresh=false terminal=false"
echo "--Pink #ffc0cb | color=#ffc0cb bash='$0' param1=copy param2='#ffc0cb' refresh=false terminal=false"
echo "--Plum #dda0dd | color=#dda0dd bash='$0' param1=copy param2='#dda0dd' refresh=false terminal=false"
echo "--Powderblue #b0e0e6 | color=#b0e0e6 bash='$0' param1=copy param2='#b0e0e6' refresh=false terminal=false"
echo "--Purple #800080 | color=#800080 bash='$0' param1=copy param2='#800080' refresh=false terminal=false"
echo "--Rebeccapurple #663399 | color=#663399 bash='$0' param1=copy param2='#663399' refresh=false terminal=false"
echo "--Red #ff0000 | color=#ff0000 bash='$0' param1=copy param2='#ff0000' refresh=false terminal=false"
echo "--Rosybrown #bc8f8f | color=#bc8f8f bash='$0' param1=copy param2='#bc8f8f' refresh=false terminal=false"
echo "--Royalblue #4169e1 | color=#4169e1 bash='$0' param1=copy param2='#4169e1' refresh=false terminal=false"
echo "--Saddlebrown #8b4513 | color=#8b4513 bash='$0' param1=copy param2='#8b4513' refresh=false terminal=false"
echo "--Salmon #fa8072 | color=#fa8072 bash='$0' param1=copy param2='#fa8072' refresh=false terminal=false"
echo "--Sandybrown #f4a460 | color=#f4a460 bash='$0' param1=copy param2='#f4a460' refresh=false terminal=false"
echo "--Seagreen #2e8b57 | color=#2e8b57 bash='$0' param1=copy param2='#2e8b57' refresh=false terminal=false"
echo "--Seashell #fff5ee | color=#fff5ee bash='$0' param1=copy param2='#fff5ee' refresh=false terminal=false"
echo "--Sienna #a0522d | color=#a0522d bash='$0' param1=copy param2='#a0522d' refresh=false terminal=false"
echo "--Silver #c0c0c0 | color=#c0c0c0 bash='$0' param1=copy param2='#c0c0c0' refresh=false terminal=false"
echo "--Skyblue #87ceeb | color=#87ceeb bash='$0' param1=copy param2='#87ceeb' refresh=false terminal=false"
echo "--Slateblue #6a5acd | color=#6a5acd bash='$0' param1=copy param2='#6a5acd' refresh=false terminal=false"
echo "--Slategray #708090 | color=#708090 bash='$0' param1=copy param2='#708090' refresh=false terminal=false"
echo "--Snow #fffafa | color=#fffafa bash='$0' param1=copy param2='#fffafa' refresh=false terminal=false"
echo "--Springgreen #00ff7f | color=#00ff7f bash='$0' param1=copy param2='#00ff7f' refresh=false terminal=false"
echo "--Steelblue #4682b4 | color=#4682b4 bash='$0' param1=copy param2='#4682b4' refresh=false terminal=false"
echo "--Tan #d2b48c | color=#d2b48c bash='$0' param1=copy param2='#d2b48c' refresh=false terminal=false"
echo "--Teal #008080 | color=#008080 bash='$0' param1=copy param2='#008080' refresh=false terminal=false"
echo "--Thistle #d8bfd8 | color=#d8bfd8 bash='$0' param1=copy param2='#d8bfd8' refresh=false terminal=false"
echo "--Tomato #ff6347 | color=#ff6347 bash='$0' param1=copy param2='#ff6347' refresh=false terminal=false"
echo "--Turquoise #40e0d0 | color=#40e0d0 bash='$0' param1=copy param2='#40e0d0' refresh=false terminal=false"
echo "--Violet #ee82ee | color=#ee82ee bash='$0' param1=copy param2='#ee82ee' refresh=false terminal=false"
echo "--Wheat #f5deb3 | color=#f5deb3 bash='$0' param1=copy param2='#f5deb3' refresh=false terminal=false"
echo "--White #ffffff | color=#ffffff bash='$0' param1=copy param2='#ffffff' refresh=false terminal=false"
echo "--Whitesmoke #f5f5f5 | color=#f5f5f5 bash='$0' param1=copy param2='#f5f5f5' refresh=false terminal=false"
echo "--Yellow #ffff00 | color=#ffff00 bash='$0' param1=copy param2='#ffff00' refresh=false terminal=false"
echo "--Yellowgreen #9acd32 | color=#9acd32 bash='$0' param1=copy param2='#9acd32' refresh=false terminal=false"



