papirus-icon-theme/tools
2021-01-01 10:39:00 +02:00
..
work ColorScheme-Highlight is back #2448 2020-11-27 15:43:49 +02:00
_clean_attrs.sed
_clean_style_attr.sed _clean_style_attr.sed: delete unsupported properties 2020-01-02 10:29:42 +02:00
_fix_color_scheme.sh Update script to use new classes #2448 2020-11-29 20:23:06 +02:00
_scour.sh Minor fixes to scripts 2019-11-19 13:34:03 +02:00
_svgo.yml
build_color_folders.sh rename Pastel to PaleOrange & make more faded 2020-08-09 09:32:48 +04:00
ffsvg.sh ffsvg.sh: create temp file to avoid overwriting a file with 0 bytes 2020-01-07 14:56:39 +02:00
flathub_list_updater.sh Move Flathub watcher from my laptop to GitHub Actions #2007 2020-02-21 18:07:19 +02:00
missing_flathub_apps.sh Add org.mozilla.firefox.BaseApp to ignore list #2007 2021-01-01 10:39:00 +02:00
README.md

Tools

  • ffsvg.sh PATH... — finds, fixes and cleans SVG files
  • _clean_attrs.sed — removes unused attributes and removes attributes with default values from elements inside SVG files (part of ffsvg.sh)
  • _clean_style_attr.sed — removes unused properties and removes 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 colors and replaces them with the corresponding stylesheet class. Fixes a color scheme after Inkscape (part of ffsvg.sh)
  • _scour.sh FILE... — Scour wrapper (part of ffsvg.sh)
  • _svgo.ymlSVGO configuraion (part of ffsvg.sh)

Useful snippets

Optimize 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

Optimize and fix SVG files that are committed in 043906b

git show --name-only 043906b | xargs ./tools/ffsvg.sh