From aace221ea23368b9147da63bcacbb057f93f62c5 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Thu, 19 Oct 2017 16:36:58 +0200 Subject: [PATCH] remove scripts, which are not working anymore --- addtheme.sh | 33 ------------------------------ update.sh | 58 ----------------------------------------------------- 2 files changed, 91 deletions(-) delete mode 100755 addtheme.sh delete mode 100755 update.sh diff --git a/addtheme.sh b/addtheme.sh deleted file mode 100755 index d5323a1..0000000 --- a/addtheme.sh +++ /dev/null @@ -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 - diff --git a/update.sh b/update.sh deleted file mode 100755 index 2eec2dd..0000000 --- a/update.sh +++ /dev/null @@ -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}" - -