Vibhav201 / Custom-Papirus-Folder-Icons

A script to generate custom coloured folder icons for the Papirus Icon Set

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom Papirus Folder Icons

This is a script to create custom coloured papirus folder icons which can then be set with the papirus-folders script.

Colour Specification

  • 1 represents the col* values in the script and there can be multiple of these. Its the primary colour for the icon.
  • 2 represents the sc_col* values in the script and there is an sc_col value for each col value. Its the secondary colour for the icon.
  • 3 represents the file_color and its the colour of the middle file section.
  • 4 represents the symbol_color and its the colour of the center symbol.

Usage

  1. Make sure You have Papirus Icon Theme installed (preferably in ~/.local/share/icons)
  2. Also, make sure you have the papirus-folders script installed to your home via this method.
  3. Clone this repository and change to cloned directory:
    git clone https://github.com/Vibhav201/Custom-Papirus-Folder-Icons
    cd Custom-Papirus-Folder-Icons
    
  4. The changecolours.sh script is the script where you have to specify the colour details. Specify icon colour names (at line 4) separated by spaces.
    For example, colors=(selection comment cyan green orange pink purple red yellow)
  5. Specify the primary colours values in the same order as the previous step (from line 13) in HEX format (without the #).
  6. Specify the respective secondary colours (from line 24) similarly.
  7. Specify the file section color with the file_color variable (at line 34).
  8. Specify the center symbol color with the symbol_color (at line 35)
  9. Specify the theme name in the place of dracula (at line 49).
  10. Specify the flavour name in the place of std (at line 50).

NOTES:
1. Remove 'dark-' from line 49 if your theme doesn't have flavours and you don't want to specify a flavour name.
2. Your icon files will be named as *-theme-flavour-color-*.svg

  1. Copy the changecolours.sh and convert.sh script files to The Icons folder. Make sure they have execution permissions.
  2. Run ./convert.sh from the Icons/ directory and you have created your custom folder icons.
  3. Move the two script files back to the repo's root directory.
  4. Run cp -r Icons/* ~/.local/share/icons/Papirus from the repo's root if you have installed Papirus for the user.
    If you have installed Papirus system-wide, run sudo cp -r Icons/* /usr/share/icons/Papirus.
  5. Now, you can set the folder icons you prefer using papirus-folders command (that you installed in step 2). You can check the steps to use it here.

NOTE: Change all 'file-rename' occurences to 'rename' in the changecolours.sh script for debian-based distros. This script has been tested on Debian and openSUSE but should work on all distros.

Thanks to

About

A script to generate custom coloured folder icons for the Papirus Icon Set


Languages

Language:Shell 100.0%