old_pwd=`pwd`
# mkdir /tmp/ubu
# cd /tmp/ubu
# git clone https://github.com/shimmerproject/elementary-xfce.git 
# git clone https://github.com/KDE/oxygen-icons.git
# git clone https://github.com/shimmerproject/libreoffice-style-elementary.git
# from ubuntu 22.10 /usr/share/icons
# tar -zxvf $old/ubu_21_10_usr_share_icons.tgz

# export DESTINATION=$old_pwd/size_24
export DESTINATION=$old_pwd/scalable

### export SOURCE=/tmp/ubu/elementary-xfce/elementary-xfce/actions/24
### 
### # these are ok, but using oxygens's
### # cp -p $SOURCE/document-new.svg $DESTINATION/new.svg
### # cp -p $SOURCE/document-open.svg $DESTINATION/openFile.svg
### # cp -p $SOURCE/document-print.svg $DESTINATION/print.svg
### # cp -p $SOURCE/document-save.svg $DESTINATION/save.svg
### # cp -p $SOURCE/document-save-as.svg $DESTINATION/saveas.svg
### # cp -p $SOURCE/document-revert.svg $DESTINATION/reload.svg
### # cp -p $SOURCE/edit-delete.svg $DESTINATION/erase-cross.svg
### # cp -p $SOURCE/folder-new.svg $DESTINATION/newfolder.svg
### # cp -p $SOURCE/go-up.svg $DESTINATION/upfolder.svg
### # cp -p $SOURCE/go-home.svg $DESTINATION/home.svg
### # these are ok, but using oxygens's
### # cp -p $SOURCE/zoom-in.svg $DESTINATION/zoomin.svg
### # cp -p $SOURCE/zoom-out.svg $DESTINATION/zoomout.svg
### # cp -p $SOURCE/zoom-fit-best.svg $DESTINATION/zframe.svg
### cp -p $SOURCE/edit-copy.svg $DESTINATION/copy.svg
### cp -p $SOURCE/view-refresh.svg $DESTINATION/redraw.svg
### cp -p $SOURCE/application-exit.svg $DESTINATION/exit.svg
### cp -p $SOURCE/media-playback-start.svg $DESTINATION/play.svg
### cp -p $SOURCE/media-playback-stop.svg $DESTINATION/stop.svg
### cp -p $SOURCE/media-playback-pause.svg $DESTINATION/pause.svg
### cp -p $SOURCE/media-seek-backward.svg $DESTINATION/rewind.svg
### cp -p $SOURCE/media-skip-forward.svg $DESTINATION/skipforward.svg
### 
### cp -p $SOURCE/edit-copy.svg  $DESTINATION/copy_text.svg
### cp -p $SOURCE/edit-cut.svg   $DESTINATION/cut_text.svg
### cp -p $SOURCE/edit-paste.svg $DESTINATION/paste_text.svg
### cp -p $SOURCE/edit-find.svg  $DESTINATION/search.svg 
### cp -p $SOURCE/edit-redo.svg  $DESTINATION/redo.svg 
### cp -p $SOURCE/edit-undo.svg  $DESTINATION/undo.svg 




### export SOURCE=/tmp/ubu/elementary-xfce/elementary-xfce/mimes/24
### cp -p $SOURCE/document.svg $DESTINATION/file.svg
### edited below to remove pencil.
### gzip -cd /tmp/ubu/oxygen-icons/scalable/mimetypes/small/22x22/text-x-katefilelist.svgz > ~/GID-git/gidproject/themes/GiD_light_plus/images/scalable/file2.svg

### export SOURCE=/tmp/ubu/elementary-xfce/elementary-xfce/devices/24
### cp -p $SOURCE/drive-harddisk.svg $DESTINATION/disk.svg
### cp -p $SOURCE/camera.svg $DESTINATION/camera.svg

# export SOURCE=/tmp/ubu/elementary-xfce/elementary-xfce/places/24
# cp -p $SOURCE/folder-pictures.svg $DESTINATION/camera.svg

### export SOURCE=/tmp/ubu/oxygen-icons/scalable/places/small/22x22/
### gzip -cd $SOURCE/document-multiple.svgz > $DESTINATION/openMultiple.svg
### 
### export SOURCE=/tmp/ubu/oxygen-icons/scalable/categories/small/22x22/
### gzip -cd $SOURCE/preferences-other.svgz > $DESTINATION/prefs.svg
### 
### export SOURCE=/tmp/ubu/oxygen-icons/scalable/actions/small/22x22/
### gzip -cd $SOURCE/document-new.svgz > $DESTINATION/new.svg
### gzip -cd $SOURCE/document-open.svgz > $DESTINATION/openFile.svg
### gzip -cd $SOURCE/document-print.svgz > $DESTINATION/print.svg
### gzip -cd $SOURCE/document-save.svgz > $DESTINATION/save.svg
### gzip -cd $SOURCE/document-save-as.svgz > $DESTINATION/saveas.svg
### gzip -cd $SOURCE/document-revert.svgz > $DESTINATION/reload.svg
### gzip -cd $SOURCE/edit-delete.svgz > $DESTINATION/erase-cross.svg
### gzip -cd $SOURCE/folder-new.svgz > $DESTINATION/newfolder.svg
### gzip -cd $SOURCE/go-up.svgz > $DESTINATION/upfolder.svg
### gzip -cd $SOURCE/go-home.svgz > $DESTINATION/home.svg

### gzip -cd $SOURCE/document-open-folder.svgz > $DESTINATION/folder.svg
### gzip -cd $SOURCE/zoom-in.svgz > $DESTINATION/zoomin.svg
### gzip -cd $SOURCE/zoom-out.svgz > $DESTINATION/zoomout.svg
### gzip -cd $SOURCE/zoom-fit-best.svgz > $DESTINATION/zframe.svg
### gzip -cd $SOURCE/zoom-next.svgz > $DESTINATION/viewnext.svg
### gzip -cd $SOURCE/zoom-previous.svgz > $DESTINATION/viewprev.svg
### gzip -cd $SOURCE/zoom-select.svgz > $DESTINATION/viewlist.svg
### gzip -cd $SOURCE/edit-cut.svgz > $DESTINATION/docut.svg

### export SOURCE=/tmp/ubu/oxygen-icons/scalable/apps/
### gzip -cd $SOURCE/help-browser.svgz > $DESTINATION/help.svg
### 
### # cp $SOURCE/format-list-unordered.svg $DESTINATION/list.svg

### export SOURCE=/tmp/ubu/libreoffice-style-elementary/svg/
### cp -p $SOURCE/lc_defaultbullet.svg $DESTINATION/list.svg

### curl https://iconarchive.com/download/i103434/paomedia/small-n-flat/layers.svg -o $DESTINATION/layers.svg
### dos2unix $DESTINATION/layers.svg
### curl https://iconarchive.com/download/i103439/paomedia/small-n-flat/lock.svg -o $DESTINATION/lock_on.svg
### dos2unix $DESTINATION/lock_on.svg
### # or edit lock_on.svg
### curl https://iconarchive.com/download/i103438/paomedia/small-n-flat/lock-open.svg  -o $DESTINATION/lock_off.svg
### dos2unix $DESTINATION/lock_off.svg

### curl https://www.svgrepo.com/download/31661/3d-movie-symbol-for-interface.svg -o $DESTINATION/acc1org.svg
### dos2unix $DESTINATION/acc1org.svg
### 
### # change color according to state:
### # change <g> to <g style="fill:#00a600;fill-opacity:1">
### cat <<EOF1 > acc_dis.patch
### 7c7
### < <g>
### ---
### > <g style="fill:#aaaaaa;fill-opacity:1">
### EOF1
### patch -o $DESTINATION/acc1dis.svg $DESTINATION/acc1org.svg ./acc_dis.patch
### rm acc_dis.patch
### 
### cat <<EOF2 > acc_on.patch
### 7c7
### < <g>
### ---
### > <g style="fill:#4acc4a;fill-opacity:1">
### EOF2
### patch -o $DESTINATION/acc1.svg $DESTINATION/acc1org.svg ./acc_on.patch
### rm acc_on.patch

### curl https://iconarchive.com/download/i107722/google/noto-emoji-travel-places/42682-rainbow.svg -o $DESTINATION/PostBarContourFill.svg
### curl https://www.svgrepo.com/download/135266/magic-wand.svg -o $DESTINATION/Macro.svg

### export SOURCE=/tmp/ubu/icons/Papirus/24x24/apps/
### cp $SOURCE/ark.svg $DESTINATION/zip_org.svg
### cat <<EOF3 > zipblue.patch
### 3c3
### <  <rect style="fill:#4caf50" width="20" height="20" x="2" y="2" rx="2" ry="2"/>
### ---
### >  <rect style="fill:#6199ca" width="20" height="20" x="2" y="2" rx="2" ry="2"/>
### EOF3
### patch -o $DESTINATION/zip.svg $DESTINATION/zip_org.svg ./zipblue.patch
### rm zipblue.patch

### curl https://freesvg.org/download/63269 -o $DESTINATION/material.svg



### export SOURCE=/tmp/ubu/icons/Humanity/apps/48/
### cp -p $SOURCE/date.svg $DESTINATION/date.svg

### export SOURCE=/tmp/ubu/icons/Humanity/actions/24/
### cp -p $SOURCE/media-record.svg $DESTINATION/Record.svg
### cp -p $SOURCE/media-playback-stop.svg $DESTINATION/EndRecord.svg

### export SOURCE=/tmp/ubu/oxygen-icons/scalable/actions/small/22x22/
### gzip -cd $SOURCE/document-edit.svgz > $DESTINATION/edit_file.svg
### gzip -cd $SOURCE/edit-rename.svgz > $DESTINATION/rename.svg
### # gzip -cd $SOURCE/story-editor.svgz > $DESTINATION/edit_file.svg
### gzip -cd $SOURCE/align-horizontal-left.svgz > $DESTINATION/align_text_left.svg

### export SOURCE=/tmp/ubu/oxygen-icons/scalable/actions/
### gzip -cd $SOURCE/help-contextual.svgz > $DESTINATION/questionarrow.svg

### export SOURCE=/tmp/ubu/oxygen-icons/scalable/actions/
### gzip -cd $SOURCE/go-bottom.svgz > $DESTINATION/ArrowBottom.svg
### gzip -cd $SOURCE/go-down.svgz > $DESTINATION/ArrowDown.svg
### gzip -cd $SOURCE/go-previous.svgz > $DESTINATION/ArrowLeft.svg
### gzip -cd $SOURCE/go-next.svgz > $DESTINATION/ArrowRight.svg
### gzip -cd $SOURCE/go-top.svgz > $DESTINATION/ArrowTop.svg
### gzip -cd $SOURCE/go-up.svgz > $DESTINATION/ArrowUp.svg
### # needs inkscape to rotate images:
### echo NEEDS EDIT (inkscape): ArrowUpLeft.svg ArrowUpRight.svg ArrowDownLeft.svg ArrowDownRight.svg
### gzip -cd $SOURCE/go-up.svgz > $DESTINATION/ArrowUpLeft.svg
### gzip -cd $SOURCE/go-up.svgz > $DESTINATION/ArrowUpRight.svg
### gzip -cd $SOURCE/go-down.svgz > $DESTINATION/ArrowDownLeft.svg
### gzip -cd $SOURCE/go-down.svgz > $DESTINATION/ArrowDownRight.svg

### gzip -cd $SOURCE/dialog-close.svgz > $DESTINATION/../close17.svg

### export SOURCE=/tmp/ubu/oxygen-icons/scalable/status/small/48x48/
### gzip -cd $SOURCE/dialog-error.svgz > $DESTINATION/../ErrorWindow.svg
### gzip -cd $SOURCE/dialog-warning.svgz > $DESTINATION/../WarningWindow.svg
### gzip -cd $SOURCE/dialog-information.svgz > $DESTINATION/../InfoWindow.svg

### export SOURCE=/tmp/ubu/icons/Humanity/status/24/
### cp -p $SOURCE/dialog-question.svg $DESTINATION/../QuestionWindow.svg

### export SOURCE=/tmp/ubu/elementary-xfce/elementary-xfce/actions/24/
### cp -p $SOURCE/gtk-execute.svg $DESTINATION/calc.svg
### cp -p $SOURCE/edit-copy.svg $DESTINATION/copy_text.svg
### cp -p $SOURCE/edit-cut.svg $DESTINATION/cut_text.svg
### cp -p $SOURCE/edit-paste.svg $DESTINATION/paste_text.svg
### cp -p $SOURCE/edit-find.svg $DESTINATION/search.svg
### cp -p $SOURCE/edit-redo.svg $DESTINATION/redo.svg
### cp -p $SOURCE/edit-undo.svg $DESTINATION/undo.svg

### export SOURCE=/tmp/ubu/elementary-xfce/elementary-xfce/places/22/
### cp -p $SOURCE/folder-documents.svg $DESTINATION/documents.svg
### cp -p $SOURCE/folder-download.svg $DESTINATION/downloads.svg
### cp -p $SOURCE/folder-publicshare.svg $DESTINATION/publicshare.svg

### export SOURCE=/tmp/ubu/oxygen-icons/scalable/places/small/22x22/
### gzip -cd $SOURCE/user-desktop.svgz > $DESTINATION/user-desktop.svg
### gzip -cd $SOURCE/folder-remote.svgz > $DESTINATION/remoteFolder.svg

### export SOURCE=/tmp/ubu/oxygen-icons/scalable/actions/small/22x22/
### gzip -cd $SOURCE/dialog-ok.svgz > $DESTINATION/dialog-ok-apply.svg

# there is the version ./oxygen-icons/scalable/categories/small/22x22/applications-system.svgz
# but the contour/border is too dark and thick
# export SOURCE=/tmp/ubu/oxygen-icons/scalable/categories/
# gzip -cd $SOURCE/applications-system.svgz > $DESTINATION/configuration.svg

### # cloud icons:
### export SOURCE=/tmp/ubu/icons/breeze/places/22/
### echo change color to #3f74af
### cp -p $SOURCE/folder-cloud.svg $DESTINATION/folder-cloud.svg
### export SOURCE=/tmp/ubu//icons/Papirus/22x22/actions/
### cp -p $SOURCE/cloud-upload.svg $DESTINATION/cloud_upload.svg
### cp -p $SOURCE/cloud-download.svg $DESTINATION/cloud_download.svg
### 
### export SOURCE=/tmp/ubu/oxygen-icons/scalable/actions/
### # in GiD login icons does not represent state but next action:
### gzip -cd $SOURCE/im-user.svgz > $DESTINATION/logout.svg
### gzip -cd $SOURCE/im-user-offline.svgz > $DESTINATION/login.svg