#!/bin/sh touch ./index.html echo " Gruvbox wallpapers

Wallpapers for gruvbox

" > ./index.html color=1 for subdir in ./wallpapers/* do echo "

" >> ./index.html echo "${subdir##*/}" | tr a-z A-Z >> ./index.html echo "

" >> ./index.html echo "
" >> ./index.html count=1; for wallpaper in ${subdir}/* do if [ "$count" -lt 11 ]; then #limit the amount of images per section in index echo " $wallpaper" >> ./index.html count=$((count+1)) else #if the limit is exceeded then create a new html with all the images of the section # TODO: make this part cleaner, this is really ugly. subhtml="${subdir##*/}.html" nimgs=$(ls "${subdir}" | wc -l) echo "
show all ${nimgs} ${subdir##*/} wallpapers
" >> ./index.html touch "${subhtml}" echo " Gruvbox wallpapers

Wallpapers for gruvbox

" > "${subhtml}" echo "

" >> "${subhtml}" echo "${subdir##*/}" | tr a-z A-Z >> "${subhtml}" echo "

" >> "${subhtml}" echo "
" >> "${subhtml}" for wallpaper2 in ${subdir}/* do echo " $wallpaper2" >> "${subhtml}" done echo "
" >> "${subhtml}" echo "

Contributions here.

This images are from random sites or contributions so I don't have a way to know who are their original artist.

I want to keep this site as simple as possible, but if you are the creator of any of these images and you want acknowledgment I will happily add a section with your name. Just open an issue here.

The same goes, if you want me to remove your art.

" >> "${subhtml}" break fi done echo "
" >> ./index.html color=$((color+1)) if [ "$color" -eq 8 ]; then color=1 fi done echo "

Contributions here.

This images are from random sites or contributions so I don't have a way to know who are their original artist.

I want to keep this site as simple as possible, but if you are the creator of any of these images and you want acknowledgment I will happily add a section with your name. Just open an issue here.

The same goes, if you want me to remove your art.

" >> ./index.html