Skip to content
Gustavo Reis edited this page Apr 19, 2019 · 4 revisions
  • alternative-icon.sh – allows you to change the alternative icon;
  • build_color_folders.sh – generates new folders colours;
  • build_gradient_folders.sh – replaces the gradient of folders:
    • The default folder is folder-discodingo;
    • Remember to copy the folder discodingo from the folder folders at this repository to a new safe folder. Inside the safe folder, you can replace the gradient colours;
    • After it, use KRename to rename the discodingo with your new name. Some icons will be broken, but you can fix it, using the command in the terminal: rename -s 'discodingo' -- 'your_new_name' *.svg;
  • ffsvg.sh PATH... – finds, fixes and cleans SVG files;
  • _clean_attrs.sed – removes unused attributes and attributes with default values from elements inside SVG files (part of ffsvg.sh);
  • _clean_style_attr.sed – removes unused properties and properties with default values from style attributes inside SVG files (part of ffsvg.sh);
  • _fix_color_scheme.sh FILE... – looks in the SVG files for certain colours and replaces them with the corresponding stylesheet class. Fixes a colour scheme after Inkscape (part of ffsvg.sh);
  • _scour.sh FILE... – Scour wrapper (part of ffsvg.sh);
  • _svgo.ymlSVGO configuration (part of ffsvg.sh).

Note that SVG0 is more recommended than Scour. You must install SVGO via npm before.

Useful snippets

Optimise and fix SVG files that are added or modified but not committed (recommended)

git status --porcelain | awk '/A|M/{print $2}' | xargs ./tools/ffsvg.sh
Clone this wiki locally