diff --git a/README.md b/README.md index e69de29..ab97617 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,12 @@ +# mbxcolors + +A menu to pick, paste and organize colors (palettes) + +## Dependencies + +- jgmenu +- xdotool +- colorpicker +- xdg-utils +- xclip + diff --git a/bin/mbxcolors b/bin/mbxcolors index 6fcd46a..acb58e8 100755 --- a/bin/mbxcolors +++ b/bin/mbxcolors @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Copyright (C) Daniel Napora 2021 -# Dependencies: jgmenu, colorpicker, xdg-utils, xclip +# Dependencies: jgmenu, xdotool, colorpicker, xdg-utils, xclip # TODO ME=$(basename $0) @@ -10,7 +10,7 @@ CNF_FILE="$CNF_DIR/mbxcolors.cfg" RECENT="$CNF_DIR/recent.clr" USED="$CNF_DIR/.used" LASTPAL="$CNF_DIR/.palette" -mkdir -p $CNF_DIR +[ ! -d "$CNF_DIR" ] && mkdir -p "$CNF_DIR" && cp -r /usr/share/mbxcolors/* "$CNF_DIR"/ if [ ! -f $CNF_FILE ]; then cat < ${CNF_FILE} # Paste mode: hex,rgb or rgba