Fix script on generating README when nothing changed.

This commit is contained in:
Dave Davenport 2015-12-11 09:09:49 +01:00
parent ad96526950
commit 6de6aa158b
2 changed files with 67 additions and 8 deletions

View file

@ -1,3 +1,63 @@
# Rofi Themes:
# blor
## Screenshot
![Screenshot](./Screenshots/blor.png)
## XResources
```
! ------------------------------------------------------------------------------
! ROFI Color theme
! ------------------------------------------------------------------------------
! Use extended color scheme
rofi.color-enabled: true
! Color scheme for normal row
rofi.color-normal: argb:00000000, #D8DEE9 , argb:00000000, #FAC863 , #1B2B34
! Color scheme for urgent row
rofi.color-urgent: argb:00000000, #F99157 , argb:00000000, #F99157 , #1B2B34
! Color scheme for active row
rofi.color-active: argb:00000000, #6699CC , argb:00000000, #6699CC , #1B2B34
! Color scheme window
rofi.color-window: argb:ee222222, #FAC863 , #FAC863
```
# blue
## Screenshot
![Screenshot](./Screenshots/blue.png)
## XResources
```
! ------------------------------------------------------------------------------
! ROFI Color theme
! ------------------------------------------------------------------------------
! Use extended color scheme
rofi.color-enabled: true
! Color scheme for normal row
rofi.color-normal: argb:00000000, #00b0ef, argb:00000000, #00b0ef,#0060a0
! Color scheme for urgent row
rofi.color-urgent: argb:00000000, #ffa0a0, argb:00000000, #ffa0a0,#0060a0
! Color scheme for active row
rofi.color-active: argb:00000000, #a0ffa0, argb:00000000, #a0ffa0,#0060a0
! Color scheme window
rofi.color-window: argb:ee0060a0, #00b0ef,#00b0ef
```
# lb
## Screenshot
![Screenshot](./Screenshots/lb.png)
## XResources
```
! ------------------------------------------------------------------------------
! ROFI Color theme
! ------------------------------------------------------------------------------
! Use extended color scheme
rofi.color-enabled: true
! Color scheme for normal row
rofi.color-normal: argb:00000000, #1aa, argb:11FFFFFF, #1aa,#333
! Color scheme for urgent row
rofi.color-urgent: argb:00000000, #f99, argb:11FFFFFF, #f99,#333
! Color scheme for active row
rofi.color-active: argb:00000000, #aa1, argb:11FFFFFF, #aa1,#333
! Color scheme window
rofi.color-window: argb:ee333333, #1aa,#1aa
! Separator style (none, dash, solid)
rofi.separator-style: dash
```

View file

@ -12,20 +12,19 @@ for a in *.theme
do
NAME=${a%.theme}
IMAGE="Screenshots/${NAME}.png"
echo "# ${NAME}" >> README.md
if [ ${a} -nt ${IMAGE} ]
then
echo "# ${NAME}" >> README.md
./rofi/script/rofi-create-screenshot.sh "${a}" "${IMAGE}"
git add "${NAME}.png"
git add "${a}"
fi
echo "## Screenshot" >> README.md
echo "![Screenshot](./${IMAGE})" >> README.md
echo "## XResources" >> README.md
echo "\`\`\`" >> README.md
cat "${a}" >> README.md
echo "\`\`\`" >> README.md
git add "${NAME}.png"
git add "${a}"
fi
done