remove scripts, which are not working anymore

This commit is contained in:
Rasmus Steinke 2017-10-19 16:36:58 +02:00
parent 1cf1add037
commit aace221ea2
2 changed files with 0 additions and 91 deletions

View file

@ -1,33 +0,0 @@
#!/usr/bin/env bash
currentdir="$(pwd)"
rofi_theme_sdir="$(dirname $0)"
main() {
cd "${rofi_theme_dir}"
theme=$(rofi -dump-xresources-theme | sed "s/User: $USER/User: $user/g")
read -p "Give your Theme a Name: " name
echo "Saving current rofi theme..."
echo ""
echo "Filename: Themes/${name}.theme"
echo "User: ${user}"
echo ""
echo "Theme saved. You can now run 'update.sh' to update this repository"
echo "${theme}" > "Themes/${name}.theme"
cd "${currentdir}"
}
case $1 in
--user)
user="${2}" main
;;
--help|-h)
echo "This script stores current rofi theme in Themes subfolder"
echo ""
echo "Arguments:"
echo "--user \"USER\" Uses specified Username in theme file. Otherwise uses login name"
;;
*)
user=$USER main
esac

View file

@ -1,58 +0,0 @@
#!/usr/bin/env bash
currentdir="$(pwd)"
rofi_themes_dir="$(dirname $0)"
cd "${rofi_themes_dir}"
git submodule update --init
# Empty file.
echo "" > README.md
# Fill it
echo "# Rofi Themes: " >> README.md
echo "Below a list of user contributed **rofi** themes." >> README.md
echo "" >> README.md
getAuthor() {
awk '/User: / { print $3 }' "${a}"
}
THEMES=(Themes/*.theme Themes/gruvbox/*.theme)
for a in ${THEMES[@]}
do
FILE=$(basename $a)
STRIPPED=$(grep -vwE "User:" "${a}")
echo "File: ${FILE}"
NAME=${FILE%.theme}
IMAGE="Screenshots/${NAME}.png"
AUTHOR=$(getAuthor)
echo "# ${FILE}" >> README.md
if [ ${AUTHOR} ];
then
echo "by ${AUTHOR}" >> README.md
fi
echo "" >> README.md
if [ ${a} -nt ${IMAGE} ]
then
./rofi/script/rofi-create-screenshot.sh "${a}" "${IMAGE}"
git add "${IMAGE}"
git add "${a}"
fi
echo "## Screenshot" >> README.md
echo "" >> README.md
echo "![Screenshot](./${IMAGE})" >> README.md
echo "" >> README.md
echo "## XResources" >> README.md
echo "" >> README.md
echo "~~~" >> README.md
echo "${STRIPPED}" >> README.md
echo "~~~" >> README.md
echo "" >> README.md
done
git add README.md
cd "${currentdir}"