Skip to content

Mephistus/icon-set-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Icon Set Tools: Folder Icon Reroller

This script automatically updates Windows folder icons by picking a random image from within each subfolder. It crops the image to a square, converts it to a high-quality .ico file, and handles the desktop.ini configuration and file attributes automatically.

Before

Before

After

After

How it Works

  1. Cleanup: Removes any existing folder_icon.ico or desktop.ini files.
  2. Selection: Randomly selects a .jpg, .jpeg, .png, or .bmp from the subfolder.
  3. Processing: Crops the image to 1:1 and resizes to 256x256.
  4. Configuration: Generates desktop.ini and sets Windows System/Hidden attributes.
  5. Refresh: Triggers a shell notification to update icons immediately.

Requirements

  • Windows OS

  • Python 3.x

  • Pillow (PIL)

    pip install Pillow

Usage

  1. Place set_icons.py in the root directory.
  2. Run run.bat or python set_icons.py.

About

Python Script to automatically update Windows Folders Icons

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors