papirus-icon-theme/tools
2023-05-29 13:57:23 +03:00
..
work Delete 1.sh 2021-08-26 10:05:33 +04:00
_clean_attrs.sed Fix a typo in tools/_clean_attrs.sed script #1946 2019-10-20 19:48:22 +03:00
_clean_style_attr.sed Fix orphan '-inkscape-' in the style attribute 2021-07-01 20:02:09 +03:00
_fix_color_scheme.sh Combine expressions into one sed call #2504 2021-01-11 12:54:15 +02:00
_scour.sh Minor fixes to scripts 2019-11-19 13:34:03 +02:00
build_color_folders.sh adwaita folders #3004 2022-02-25 10:55:45 +04:00
ffsvg.sh Add SVGO v2 config. Drop SVGO v1 support! 2021-02-18 22:07:44 +02:00
flathub_list_updater.sh flathub_list_updater.sh: fix jq: Argument list too long 2021-10-01 15:04:48 +03:00
make-dist.sh Minor fix make-dist.sh 2021-10-17 08:19:08 +03:00
missing_flathub_apps.sh Add cc.nift.nsm to ignore list #2007 2023-05-29 13:57:23 +03:00
README.md fix typos 2021-09-23 18:43:19 +03:00
svgo.config.js svgo: change plugins order to fix sortAttrs 2021-02-19 16:06:40 +02:00

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.config.jsSVGO configuration (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